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

Promote "When the following upstream promotions are promoted" does not happen

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Major Major
    • promoted-builds-plugin
    • None
    • Jenkins 1.424.2
      Promoted-builds-plugin 2.4
      parameterized trigger plugin 2.12

      I have a "quicktest" job set to: "Promote immediately once the build is complete" and nothing else.
      This should happen automatically when the tests complete and they all pass, ie when "stable".
      This works; the promotion is named "Bedrock-DEV-GF-EL-quicktest promoted"

      The "quicktest" job triggers (via parameterized trigger plugin) a downstream job "zipfile" which packages the project for release to QA, if "quicktest" is stable.
      The zipfile job is set promote:
      "Promote immediately once the build is complete" &&
      "When the following upstream promotions are promoted" promotion names: "Bedrock-DEV-GF-EL-quicktest promoted"

      I'd expect this zipfile job to get promoted, but it doesn't happen; The Promotion status screen says:
      Bedrock-DEV-GF-EL-zipfile promoted
      This promotion has not happened.
      Met Qualification
      Automatically promoted immediately after the build
      Unmet Qualification
      Upstream promotions
      Bedrock-DEV-GF-EL-quicktest promoted

          [JENKINS-12804] Promote "When the following upstream promotions are promoted" does not happen

          David B added a comment - - edited

          I have the same problem, is there a quick fix? I tried it with the normal trigger plugin (but I have the parameterized installed), a stable / unstable job as parent and a stable / unstable job as child. In the child it always says:

          This promotion has not happened.
          Met Qualification
          Unmet Qualification
          Upstream promotions
          groovyunst

          Jenkins ver. 1.475
          Promoted-builds-plugin 2.5

          David B added a comment - - edited I have the same problem, is there a quick fix? I tried it with the normal trigger plugin (but I have the parameterized installed), a stable / unstable job as parent and a stable / unstable job as child. In the child it always says: This promotion has not happened. Met Qualification Unmet Qualification Upstream promotions groovyunst Jenkins ver. 1.475 Promoted-builds-plugin 2.5

          Hannes Kogler added a comment -

          @Ed

          I was also wondering if that promotion won't be executed first but now I think that this option is only designed to trigger automated promotions from THE SAME job which just should be promoted BEFORE itself. so "upstream" - as I understand it now - just means "before other promotions of this job"...

          But I think you're right. The behavior you expect would be the more logically interpretation of this option description.

          Hannes Kogler added a comment - @Ed I was also wondering if that promotion won't be executed first but now I think that this option is only designed to trigger automated promotions from THE SAME job which just should be promoted BEFORE itself. so "upstream" - as I understand it now - just means "before other promotions of this job"... But I think you're right. The behavior you expect would be the more logically interpretation of this option description.

          fransflippo added a comment -

          Same issue here. I have two qualifications for a promotion: one is that another (upstream) promotion passes, the other is that the promotion is manually approved. However, when I manually approve (and the upstream promotions have already passed), Jenkins still lists the upstream promotions under "Unmet qualifications" even though the have been met!

          fransflippo added a comment - Same issue here. I have two qualifications for a promotion: one is that another (upstream) promotion passes, the other is that the promotion is manually approved. However, when I manually approve (and the upstream promotions have already passed), Jenkins still lists the upstream promotions under "Unmet qualifications" even though the have been met!

          Michael Price added a comment -

          This is also an issue that we're seeing.

          Michael Price added a comment - This is also an issue that we're seeing.

          Arvid Arntzen added a comment -

          Same case here. I configured a downstram job to have promotion criteria to "When the following upstream promotions are promoted" with name of upstram jobs promotion.

          When promoting a build in the parent job, I would expect the corresponding downstream build to also be promoted. But promote condition is never met.

          Arvid Arntzen added a comment - Same case here. I configured a downstram job to have promotion criteria to "When the following upstream promotions are promoted" with name of upstram jobs promotion. When promoting a build in the parent job, I would expect the corresponding downstream build to also be promoted. But promote condition is never met.

            Unassigned Unassigned
            edrandall Ed Randall
            Votes:
            9 Vote for this issue
            Watchers:
            10 Start watching this issue

              Created:
              Updated: