use of org.jenkinsci.test.acceptance.plugins.scriptler.ScriptResult in project acceptance-test-harness by jenkinsci.
the class ScriptlerPluginTest method run_on_all_slaves.
@Test
public void run_on_all_slaves() throws Exception {
Slave slaveA = slaves.install(jenkins).get();
Slave slaveB = slaves.install(jenkins).get();
Script script = scriptler.upload(SIMPLE_SCRIPT);
ScriptResult output = script.runOnAllSlaves();
assertThat(output.output(jenkins), nullValue());
assertThat(output.output(slaveA), equalTo("Hello world!"));
assertThat(output.output(slaveB), equalTo("Hello world!"));
}
Aggregations