Search in sources :

Example 1 with FileVerifier

use of jenkins.plugins.nodejs.VerifyEnvVariableBuilder.FileVerifier in project nodejs-plugin by jenkinsci.

the class NodeJSBuildWrapperTest method test_creation_of_config.

@Test
public void test_creation_of_config() throws Exception {
    FreeStyleProject job = j.createFreeStyleProject("free");
    final Config config = createSetting("my-config-id", "email=foo@acme.com", null);
    NodeJSInstallation installation = mockInstaller();
    NodeJSBuildWrapper bw = mockWrapper(installation, config);
    job.getBuildWrappersList().add(bw);
    job.getBuildersList().add(new FileVerifier());
    j.assertBuildStatusSuccess(job.scheduleBuild2(0));
}
Also used : NodeJSInstallation(jenkins.plugins.nodejs.tools.NodeJSInstallation) FileVerifier(jenkins.plugins.nodejs.VerifyEnvVariableBuilder.FileVerifier) Config(org.jenkinsci.lib.configprovider.model.Config) NPMConfig(jenkins.plugins.nodejs.configfiles.NPMConfig) FreeStyleProject(hudson.model.FreeStyleProject) Test(org.junit.Test)

Aggregations

FreeStyleProject (hudson.model.FreeStyleProject)1 FileVerifier (jenkins.plugins.nodejs.VerifyEnvVariableBuilder.FileVerifier)1 NPMConfig (jenkins.plugins.nodejs.configfiles.NPMConfig)1 NodeJSInstallation (jenkins.plugins.nodejs.tools.NodeJSInstallation)1 Config (org.jenkinsci.lib.configprovider.model.Config)1 Test (org.junit.Test)1