-
Improvement
-
Resolution: Fixed
-
Major
-
Not applicable
When building a Maven release, the parameters Release Version and Development Version are passed to the Maven release command via -DreleaseVersion and -DdevelopmentVersion respectively.
It would be extremely handy to expose these as environment variables so that they can be accessed throughout the job configuration; for example just like the variable WORKSPACE.
Code changed in jenkins
User: imod
Path:
src/main/java/org/jvnet/hudson/plugins/m2release/M2ReleaseAction.java
src/main/java/org/jvnet/hudson/plugins/m2release/M2ReleaseBuildWrapper.java
http://jenkins-ci.org/commit/m2release-plugin/c78a508bcb9634c01b582ea7c3791fae86eeded0
Log:
[FIXED JENKINS-12128] expose dryRun flag, release and dev version as env variables
Compare: https://github.com/jenkinsci/m2release-plugin/compare/d302d15...c78a508