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

Promotion criteria "When the following downstream projects build successfully" ONLY works with direct/immediate downstream jobs

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: Major Major
    • promoted-builds-plugin
    • None

      This is the simplest (if not trivial case): promote when the last job in the chain succeeds.
      And it fails for a chain more than two jobs.

      How to reproduce?

      job_a => job_b => job_c

      Configure chain of 3 jobs (using upstream-downstream relationship).

      Configure job_a to use promotion When the following downstream projects build successfully with job list containing only job_c.

      Start job_a and wait until entire chain completes.

      Expected result

      As job_c succeeds, job_a should be promoted.

      Actual result

      Failure: no promotion happens.

      Additional info

      job_a => job_b

      If chain is reduced to ONLY 2 jobs (and promotion process for job_a is also re-configured to use successful completion of job_b as a trigger), it works as expected.

      In other words, promotion happens ONLY when the trigger downstream job is direct/immediate/next in the chain.

      The bug was reproduced from this user group discussion.

      No artifact fingerprints is used (the promotion is expected to happen based on solely upstream-downstream relationship).

            Unassigned Unassigned
            uvsmtid Alexey Pakseykin
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: