use of org.jenkinsci.test.acceptance.plugins.groovy.GroovyInstallation in project acceptance-test-harness by jenkinsci.
the class GroovyPluginTest method use_native_groovy.
@Test
@Native("groovy")
public void use_native_groovy() {
GroovyInstallation groovy = ToolInstallation.addTool(jenkins, GroovyInstallation.class);
groovy.name.set("local-groovy");
groovy.useNative();
groovy.getPage().save();
configureJob();
final GroovyStep step = job.addBuildStep(GroovyStep.class);
step.version.select("local-groovy");
step.script("println 'version: ' + groovy.lang.GroovySystem.getVersion()");
job.save();
Build build = job.startBuild().shouldSucceed();
String expectedVersion = localGroovyVersion();
build.shouldContainsConsoleOutput("version: " + expectedVersion);
}
Aggregations