Uploaded image for project: 'Jenkins'
  1. Jenkins
  2. JENKINS-62896

Upstream job not able to trigger downstream job

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.

       

            aaronjwhiteside Aaron Whiteside
            abmaster AB S
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: