Upstream job not able to trigger downstream job

This issue is archived. You can view it, but you can't modify it. Learn more

XMLWordPrintable

      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.

       

            Assignee:
            Aaron Whiteside
            Reporter:
            AB S
            Archiver:
            Jenkins Service Account

              Created:
              Updated:
              Resolved:
              Archived: