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

Add previous revision to environment variables for Mercurial

    Details

    • Similar Issues:

      Description

      The git plugin provides the following environment variables:

      GIT_PREVIOUS_COMMIT: The hash of the commit last built on this branch, if any.

      GIT_PREVIOUS_SUCCESSFUL_COMMIT: The hash of the commit last successfully built on this branch, if any.

      It would be useful if the mercurial plugin provided the same information, e.g.

      MERCURIAL_PREVIOUS_REVISION: Full ID of revision last built on this job.

      MERCURIAL_PREVIOUS_SUCCESSFUL_REVISION: Full ID of revision last successfully built on this job.

        Attachments

          Activity

          Hide
          krandell Kim Randell added a comment -
          Show
          krandell Kim Randell added a comment - Pull request declined. https://github.com/jenkinsci/mercurial-plugin/pull/124

            People

            • Assignee:
              krandell Kim Randell
              Reporter:
              krandell Kim Randell
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: