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

Promoted Builds + Parameterized Trigger fails to pass Git revision

    XMLWordPrintable

    Details

    • Similar Issues:

      Description

      When using Promoted Builds to manually promote a build and invoke Parameterized Trigger with a parameter of "Pass through Git Commit that was built", the promotion fails with the following message:

      This project doesn't use Git as SCM. Can't pass the revision to downstream

      The job in question most certainly uses Git for SCM. Without debugging into code, a quick bit of Googling suggests that it may already be fixed with a pull request waiting, as not all actions are getting passed.

        Attachments

          Activity

          danielmendeley Daniel Jones created issue -
          Hide
          ohtake_tomohiro OHTAKE Tomohiro added a comment -

          Pull requst 11 has been merged and released in 2.5.
          You can pass GIT_COMMIT as following:

          Predefined parameter
          GIT_COMMIT=${PROMOTED_GIT_COMMIT}
          
          Show
          ohtake_tomohiro OHTAKE Tomohiro added a comment - Pull requst 11 has been merged and released in 2.5. You can pass GIT_COMMIT as following: Predefined parameter GIT_COMMIT=${PROMOTED_GIT_COMMIT}
          ohtake_tomohiro OHTAKE Tomohiro made changes -
          Field Original Value New Value
          Status Open [ 1 ] Resolved [ 5 ]
          Resolution Fixed [ 1 ]
          Hide
          roidelapluie Julien Pivotto added a comment -

          This is not fixed as the workaround you give is not working. I still have:

          This project doesn't use Git as SCM. Can't pass the revision to downstream

          Here are the versions of the related plugins:

          promoted-builds-2.8-1
          parameterized-trigger-2.16-1
          git-1.1.26-1

          Show
          roidelapluie Julien Pivotto added a comment - This is not fixed as the workaround you give is not working. I still have: This project doesn't use Git as SCM. Can't pass the revision to downstream Here are the versions of the related plugins: promoted-builds-2.8-1 parameterized-trigger-2.16-1 git-1.1.26-1
          roidelapluie Julien Pivotto made changes -
          Resolution Fixed [ 1 ]
          Status Resolved [ 5 ] Reopened [ 4 ]
          Hide
          roidelapluie Julien Pivotto added a comment - - edited

          Setting
          Predefined parameter
          GIT_COMMIT=$PROMOTED_GIT_COMMIT
          as Predefined parameter just do nothing. The paramater is there in the triggered job but it builds the last commit anyway.

          Show
          roidelapluie Julien Pivotto added a comment - - edited Setting Predefined parameter GIT_COMMIT=$PROMOTED_GIT_COMMIT as Predefined parameter just do nothing. The paramater is there in the triggered job but it builds the last commit anyway.
          ndeloof Nicolas De Loof made changes -
          Component/s git [ 15543 ]
          Hide
          ikedam ikedam added a comment -

          Just passing GIT_COMMIT does not resolve the problem.
          "Pass through Git Commit that was built" makes downstream builds checkout the same revision, not just passes GIT_COMMIT.

          The problem of "Pass through Git Commit that was built" with Promoted Builds plugin is fixed in Git plugin 1.5.0
          (See https://wiki.jenkins-ci.org/display/JENKINS/Git+Plugin#GitPlugin-Version1.5.0%28Aug28,2013%29 ).
          Please try that.

          Show
          ikedam ikedam added a comment - Just passing GIT_COMMIT does not resolve the problem. "Pass through Git Commit that was built" makes downstream builds checkout the same revision, not just passes GIT_COMMIT . The problem of "Pass through Git Commit that was built" with Promoted Builds plugin is fixed in Git plugin 1.5.0 (See https://wiki.jenkins-ci.org/display/JENKINS/Git+Plugin#GitPlugin-Version1.5.0%28Aug28,2013%29 ). Please try that.
          ikedam ikedam made changes -
          Component/s git [ 15543 ]
          Component/s parameterized-trigger [ 15592 ]
          markewaite Mark Waite made changes -
          Status Reopened [ 4 ] Open [ 1 ]
          rtyler R. Tyler Croy made changes -
          Workflow JNJira [ 144776 ] JNJira + In-Review [ 176192 ]

            People

            • Assignee:
              ndeloof Nicolas De Loof
              Reporter:
              danielmendeley Daniel Jones
            • Votes:
              6 Vote for this issue
              Watchers:
              8 Start watching this issue

              Dates

              • Created:
                Updated: