-
Improvement
-
Resolution: Fixed
-
Minor
-
None
Currently, the bazaar plugin doesn't set an env var like the svn or cvs plugins. Would be really useful. Looks like its just applying this patch
Index: BazaarSCM.java =================================================================== --- BazaarSCM.java (revision 24298) +++ BazaarSCM.java (working copy) @@ -%ld,%ld +%ld,%ld @@ @Override public void buildEnvVars(AbstractBuild build, Map<String, String> env) { + env.put("BZR_REVISION",this.getRevno().toString()) } @Override
- is related to
-
JENKINS-17376 BZR Environment Variables
-
- Open
-
[JENKINS-4985] Set an env var with the Bzr rev number in the bzr plugin
Description |
Original:
Currently, the bazaar plugin doesn't set an env var like the svn or cvs plugins. Would be really useful. Looks like its just applying this patch Index: BazaarSCM.java =================================================================== --- BazaarSCM.java (revision 24298) +++ BazaarSCM.java (working copy) @@ -%ld,%ld +%ld,%ld @@ @Override public void buildEnvVars(AbstractBuild build, Map<String, String> env) { + env.put("BZR_REVISION",this.getRevno().toString()) } @Override |
New:
Currently, the bazaar plugin doesn't set an env var like the svn or cvs plugins. Would be really useful. Looks like its just applying this patch {noformat} Index: BazaarSCM.java =================================================================== --- BazaarSCM.java (revision 24298) +++ BazaarSCM.java (working copy) @@ -%ld,%ld +%ld,%ld @@ @Override public void buildEnvVars(AbstractBuild build, Map<String, String> env) { + env.put("BZR_REVISION",this.getRevno().toString()) } @Override {noformat} |
Priority | Original: Major [ 3 ] | New: Minor [ 4 ] |
Attachment | New: bazaar-hudson-revision-number.patch [ 19420 ] |
Attachment | New: JENKINS-4985.patch [ 19908 ] |
Current version of the plugin needs a launcher and workspace to get the revno, so its not quite that easy
.
You can have bzr stash that info in a file when it updates the tree using a hook, if you like, or we can look at what it will take to make buildEnvVars get enough parameters to work,