use of hudson.cli.CLICommandInvoker in project workflow-job-plugin by jenkinsci.
the class CLITest method console.
@Issue("JENKINS-41527")
@Test
public void console() throws Exception {
WorkflowJob p = r.createProject(WorkflowJob.class, "p");
p.setDefinition(new CpsFlowDefinition("echo 'this is what I said'", true));
r.buildAndAssertSuccess(p);
CLICommandInvoker.Result res = new CLICommandInvoker(r, "console").invokeWithArgs("p");
assertThat(res, CLICommandInvoker.Matcher.succeeded());
assertThat(res.stdout(), containsString("this is what I said"));
}
Aggregations