Permalink
Please
sign in to comment.
Browse files
Merge pull request #104 from jglick/buildEnv
[JENKINS-26100] Supply MercurialSCM/buildEnv
- Loading branch information
Showing
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