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.

          [JENKINS-26100] SCM steps should return revision state

          Jesse Glick created issue -

          Jesse Glick added a comment -

          Requires some kind of enhanced API from SCM.

          Jesse Glick added a comment - Requires some kind of enhanced API from SCM .
          Jesse Glick made changes -
          Link New: This issue depends on JENKINS-24141 [ JENKINS-24141 ]

          Not just for GIT, please. We have a similar use case for other SCMs, too.

          Thomas Goeppel added a comment - Not just for GIT, please. We have a similar use case for other SCMs, too.

          Jesse Glick added a comment -

          Sure, I was just using Git as an example.

          Jesse Glick added a comment - Sure, I was just using Git as an example.

          Jesse Glick added a comment -

          Features in scm-api (as in JENKINS-26129) might be enough to both determine the current tip, and preconfigure an SCM to check that out.

          Jesse Glick added a comment - Features in scm-api (as in JENKINS-26129 ) might be enough to both determine the current tip, and preconfigure an SCM to check that out.
          Jesse Glick made changes -
          Link New: This issue is related to JENKINS-26129 [ JENKINS-26129 ]

          Daniel Beck added a comment -

          Related: Subversion Plugin has RevisionParameterAction to build a predetermined revision.

          Daniel Beck added a comment - Related: Subversion Plugin has RevisionParameterAction to build a predetermined revision.

          Jesse Glick added a comment -

          Good to know, though the more generic approach would be to take advantage of the logic in SubversionSCMSource.build.

          Jesse Glick added a comment - Good to know, though the more generic approach would be to take advantage of the logic in SubversionSCMSource.build .
          Jesse Glick made changes -
          Link New: This issue is related to JENKINS-26942 [ JENKINS-26942 ]

            abayer Andrew Bayer
            jglick Jesse Glick
            Votes:
            85 Vote for this issue
            Watchers:
            100 Start watching this issue

              Created:
              Updated:
              Resolved: