Details
-
Bug
-
Status: Resolved (View Workflow)
-
Minor
-
Resolution: Fixed
-
None
Description
I have a parameterized build with the following version number format string
$BUILD_VERSION_PREFIX.${BUILDS_ALL_TIME,XX}
Where $BUILD_VERSION_PREFIX is the parameter.
While the version is properly generated for ant builds (as parameter), on the GUI it displays like this:
$BUILD_VERSION_PREFIX.02
see also screenshot.
Code changed in jenkins
User: Deniz Bahadir
Path:
src/main/java/org/jvnet/hudson/tools/versionnumber/VersionNumberCommon.java
http://jenkins-ci.org/commit/versionnumber-plugin/30e9ebdbbe44c6f1f5bfb4c7fcebd65dd0a2ee14
Log:
JENKINS-15371Extended (environment-)variable substition.Environment-variables, used in the version-number's format-string no
longer need to be in format "${MYVAR}", "$MYVAR" work now, too.
However, variables accessing the plugins' variables (e.g. BUILDS_TODAY,
BUILDS_ALL_TIME, etc.) still must be enclosed in braces.