-
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
-
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,