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

Current build parameters are not passed if automatically promoted

    XMLWordPrintable

    Details

    • Similar Issues:

      Description

      When promote a build is set to "Promote immediately once the build is complete" and the action Trigger/call builds on other projects is configured with send "Current build parameters" parameters are not passed. If instead you configure to "Only when manually approved" parameters are correctly passed tho the other build

        Attachments

          Activity

          Hide
          bekriebel Brint Kriebel added a comment -

          This also happens if using both the "Promote immediately" and "Manual" option together with parameters added during the manual step.

          If the job completes and you manually trigger the promotion, the parameters entered are passed properly. However, if you manually promote the build while it is still running, when the job completes and the job it automatically promoted, the parameters are all lost.

          Show
          bekriebel Brint Kriebel added a comment - This also happens if using both the "Promote immediately" and "Manual" option together with parameters added during the manual step. If the job completes and you manually trigger the promotion, the parameters entered are passed properly. However, if you manually promote the build while it is still running, when the job completes and the job it automatically promoted, the parameters are all lost.
          Hide
          bekriebel Brint Kriebel added a comment -

          I've submitted a pull request to fix this issue: https://github.com/jenkinsci/promoted-builds-plugin/pull/68

          Show
          bekriebel Brint Kriebel added a comment - I've submitted a pull request to fix this issue: https://github.com/jenkinsci/promoted-builds-plugin/pull/68
          Hide
          scm_issue_link SCM/JIRA link daemon added a comment -

          Code changed in jenkins
          User: Brint E. Kriebel
          Path:
          src/main/java/hudson/plugins/promoted_builds/PromotionProcess.java
          src/main/resources/hudson/plugins/promoted_builds/conditions/SelfPromotionCondition/index.jelly
          http://jenkins-ci.org/commit/promoted-builds-plugin/9c76a08b52a03e205a5147d57d869ced16968a74
          Log:
          Provide parameters from manual approval on all promotions

          If a manual promotion has been done, provide its parameters to any other
          type of promotion that may trigger the build.

          Reword the SelfPromotionCondition failure text to indicate that the
          build may still be in progress.

          [FIXED JENKINS-29793]

          Show
          scm_issue_link SCM/JIRA link daemon added a comment - Code changed in jenkins User: Brint E. Kriebel Path: src/main/java/hudson/plugins/promoted_builds/PromotionProcess.java src/main/resources/hudson/plugins/promoted_builds/conditions/SelfPromotionCondition/index.jelly http://jenkins-ci.org/commit/promoted-builds-plugin/9c76a08b52a03e205a5147d57d869ced16968a74 Log: Provide parameters from manual approval on all promotions If a manual promotion has been done, provide its parameters to any other type of promotion that may trigger the build. Reword the SelfPromotionCondition failure text to indicate that the build may still be in progress. [FIXED JENKINS-29793]

            People

            • Assignee:
              Unassigned
              Reporter:
              martinotu martino tu
            • Votes:
              4 Vote for this issue
              Watchers:
              7 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: