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

SCM steps should return revision state

    XMLWordPrintable

    Details

    • Similar Issues:

      Description

      The return value of the git step should be the commit hash, etc., and there should be a way to pass that back in to a subsequent git step in case you want to check out the same revision in another workspace (without copying files).

      The workaround is to archive and then unarchive sources.

        Attachments

          Issue Links

            Activity

            Hide
            rainwaj Justin Rainwater added a comment -

            Thanks for the reply Mark Waite. Do you happen to know if checkout() is also returning the PR title/description and/or comments? I think that's the only way this new functionality could provide the same value as "Skip Build Phrase" from GHPRB.

            Show
            rainwaj Justin Rainwater added a comment - Thanks for the reply Mark Waite . Do you happen to know if checkout() is also returning the PR title/description and/or comments? I think that's the only way this new functionality could provide the same value as "Skip Build Phrase" from GHPRB.
            Hide
            markewaite Mark Waite added a comment -

            Justin Rainwater I know that it is not returning any pull request specific information (at least not at this time). It returns information about the commit and its branch, not about the pull request.

            Show
            markewaite Mark Waite added a comment - Justin Rainwater I know that it is not returning any pull request specific information (at least not at this time). It returns information about the commit and its branch, not about the pull request.
            Hide
            gotson Gauthier Roebroeck added a comment -

            Hello, i asked a question on StackOverflow, i am using JGit and cannot get any information from scm checkout using the latest version of the plugin.

            Would you know if this is a limitation of JGit itself, or from the SCM steps plugin ?

            Show
            gotson Gauthier Roebroeck added a comment - Hello, i asked a question on StackOverflow , i am using JGit and cannot get any information from scm checkout using the latest version of the plugin. Would you know if this is a limitation of JGit itself, or from the SCM steps plugin ?
            Hide
            markewaite Mark Waite added a comment -

            Gauthier Roebroeck in your stackoverflow question, you mention that you're running git plugin 3.3.0. The fix was not included in the git plugin until 3.3.2. You'll need to update to at least git plugin 3.3.2.

            Show
            markewaite Mark Waite added a comment - Gauthier Roebroeck in your stackoverflow question, you mention that you're running git plugin 3.3.0. The fix was not included in the git plugin until 3.3.2. You'll need to update to at least git plugin 3.3.2.
            Hide
            gotson Gauthier Roebroeck added a comment -

            Mark Waite thanks a lot for your help, upgrading the Git Plugin to 3.3.2 indeed solved my problem !

            Show
            gotson Gauthier Roebroeck added a comment - Mark Waite thanks a lot for your help, upgrading the Git Plugin to 3.3.2 indeed solved my problem !

              People

              • Assignee:
                abayer Andrew Bayer
                Reporter:
                jglick Jesse Glick
              • Votes:
                85 Vote for this issue
                Watchers:
                101 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: