Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
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 8e0581a
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 0 deletions.
@@ -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.