Skip to content
Permalink
Browse files

Merge pull request #104 from jglick/buildEnv

[JENKINS-26100] Supply MercurialSCM/buildEnv
  • Loading branch information...
jglick committed Jun 30, 2017
2 parents bfc7cbd + 16fb1fe commit 8e0581ac7045aedfd2f34ea6fa01d90618df6b3c
@@ -0,0 +1,9 @@
package hudson.plugins.mercurial.MercurialSCM;

def l = namespace(lib.JenkinsTagLib)

['MERCURIAL_REVISION', 'MERCURIAL_REVISION_SHORT', 'MERCURIAL_REVISION_NUMBER', 'MERCURIAL_REVISION_BRANCH', 'MERCURIAL_REPOSITORY_URL'].each {name ->
l.buildEnvVar(name: name) {
raw(_("${name}.blurb"))
}
}
@@ -0,0 +1,5 @@
MERCURIAL_REVISION.blurb=Full ID of revision checked out.
MERCURIAL_REVISION_SHORT.blurb=Abbreviated ID of revision checked out.
MERCURIAL_REVISION_NUMBER.blurb=Number of revision checked out (not portable across clones).
MERCURIAL_REVISION_BRANCH.blurb=Branch of revision checked out, if not checking out by branch head.
MERCURIAL_REPOSITORY_URL.blurb=URL of repository.

0 comments on commit 8e0581a

Please sign in to comment.
You can’t perform that action at this time.