-
Bug
-
Resolution: Not A Defect
-
Minor
-
None
-
java 8
I am writing a test to verify that upstream job is triggering a downstream build, but the console log is not showing that a job was triggered in downstream:
FreeStyleProject upstream = r.createFreeStyleProject("upstream");
r.createFreeStyleProject("d0wnstr3'am");
upstream.getPublishersList().add(new BuildTrigger("d0wnstr3'am", Result.SUCCESS));
FreeStyleBuild b = r.buildAndAssertSuccess(upstream);
r.waitUntilNoActivity();
HtmlPage rsp = r.createWebClient().goTo(b.getUrl()+"console");
assertThat(rsp.querySelector(".console-output").asText(), containsString("Triggering a new build of"));
This works fine on my local machine, but not when I run tests on Jenkins to fix a bug.