use of org.jenkinsci.test.acceptance.plugins.ant.AntBuildStep in project acceptance-test-harness by jenkinsci.
the class AntPluginTest method locallyInstalledAnt.
@Test
@Native("ant")
public void locallyInstalledAnt() {
AntInstallation ant = ToolInstallation.addTool(jenkins, AntInstallation.class);
ant.name.set("native_ant");
String antHome = ant.useNative();
ant.getPage().save();
job.configure();
job.copyResource(resource("ant/echo-helloworld.xml"), "build.xml");
AntBuildStep step = job.addBuildStep(AntBuildStep.class);
step.antName.select("native_ant");
step.targets.set("-version");
job.save();
String expectedVersion = localAntVersion(antHome);
job.startBuild().shouldSucceed().shouldContainsConsoleOutput(Pattern.quote(expectedVersion));
}
Aggregations