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

mercurial scm sets the wrong commit id

    XMLWordPrintable

    Details

    • Similar Issues:

      Description

      Not really sure if this is a bug here, or in the mercurial plugin, but the MercurialScmAdapter gets the revision id by calling hgSCM.getRevision(), which just returns whatever value set in the job configuration and defaults to "default". Bitbucket accepts this, and I'm not sure if it actually tags a commit somewhere, but it returns a url I can't access.

      I looked at the code briefly, and it looks like the only way to get an actual revisionId is to call
      one of the versions of hgSCM.calcRevisionFromBuild(), cast that to a hgTagAction and get the id of that.

        Attachments

          Activity

          There are no comments yet on this issue.

            People

            Assignee:
            flagbit Antonio Mansilla
            Reporter:
            peterhn peter Holtegaard Nielsen
            Votes:
            2 Vote for this issue
            Watchers:
            3 Start watching this issue

              Dates

              Created:
              Updated: