Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
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
Showing
2 changed files
with
14 additions
and
0 deletions.
There are no files selected for viewing
9 changes: 9 additions & 0 deletions
9
src/main/resources/hudson/plugins/mercurial/MercurialSCM/buildEnv.groovy
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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")) | ||
} | ||
} |
5 changes: 5 additions & 0 deletions
5
src/main/resources/hudson/plugins/mercurial/MercurialSCM/buildEnv.properties
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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. |