Skip to content
Permalink
Browse files

[JENKINS-26100] Supply MercurialSCM/buildEnv.

  • Loading branch information
jglick committed Jun 29, 2017
1 parent bfc7cbd commit 16fb1feb2499c01f4f44117d96691f508c00f10f
@@ -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 16fb1fe

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