Search in sources :

Example 1 with MavenProjectConfig

use of org.jenkinsci.test.acceptance.plugins.maven.MavenProjectConfig in project acceptance-test-harness by jenkinsci.

the class MavenPluginTest method set_global_maven_options.

@Test
public void set_global_maven_options() {
    installSomeMaven(jenkins);
    jenkins.configure();
    new MavenProjectConfig(jenkins.getConfigPage()).opts.set("-showversion");
    jenkins.save();
    MavenModuleSet job = jenkins.jobs.create(MavenModuleSet.class);
    job.configure();
    job.copyDir(resource("/maven_plugin/multimodule/"));
    job.goals.set("clean");
    job.save();
    job.startBuild().shouldSucceed().shouldContainsConsoleOutput(" Runtime Environment ");
}
Also used : MavenProjectConfig(org.jenkinsci.test.acceptance.plugins.maven.MavenProjectConfig) MavenModuleSet(org.jenkinsci.test.acceptance.plugins.maven.MavenModuleSet) AbstractJUnitTest(org.jenkinsci.test.acceptance.junit.AbstractJUnitTest) Test(org.junit.Test) DockerTest(org.jenkinsci.test.acceptance.junit.DockerTest)

Aggregations

AbstractJUnitTest (org.jenkinsci.test.acceptance.junit.AbstractJUnitTest)1 DockerTest (org.jenkinsci.test.acceptance.junit.DockerTest)1 MavenModuleSet (org.jenkinsci.test.acceptance.plugins.maven.MavenModuleSet)1 MavenProjectConfig (org.jenkinsci.test.acceptance.plugins.maven.MavenProjectConfig)1 Test (org.junit.Test)1