Thank you for the versionnumber Jenkins plugin.
I would like the versionnumber Jenkins plugin to support simple arithmetic to calculate the build version number.
An example version number format string:
1.0.(1200 * ${YEARS_SINCE_PROJECT_START}) + ${BUILD_MONTH, X}${BUILD_DAY, XX}.${BUILDS_TODAY, X}
In this way, if my project started in 2015, the last build in that year would have a version number of 1.0.1231.1 for example.
And then instead of having to increment the minor version number, the next build in the new year would be 1.0.1301.1 for example.
It doesn't seem that the plugin currently supports this.
Thank you.
Originally reported by
rami, imported from: Ability to support simple arithmetic with the build version number
- status: Open
- priority: Minor
- component(s): versionnumber-plugin
- label(s): plugins
- resolution: Unresolved
- votes: 0
- watchers: 0
- imported: 20251216-225446
Raw content of original issue
Thank you for the versionnumber Jenkins plugin.
I would like the versionnumber Jenkins plugin to support simple arithmetic to calculate the build version number.
An example version number format string:
1.0.(1200 * ${YEARS_SINCE_PROJECT_START}) + ${BUILD_MONTH, X}${BUILD_DAY, XX}.${BUILDS_TODAY, X}
In this way, if my project started in 2015, the last build in that year would have a version number of 1.0.1231.1 for example.
And then instead of having to increment the minor version number, the next build in the new year would be 1.0.1301.1 for example.
It doesn't seem that the plugin currently supports this.
Thank you.
environment
Jenkins 1.646<br/>
Version Number Plug-In v1.6
Thank you for the versionnumber Jenkins plugin.
I would like the versionnumber Jenkins plugin to support simple arithmetic to calculate the build version number.
An example version number format string:
1.0.(1200 * ${YEARS_SINCE_PROJECT_START}) + ${BUILD_MONTH, X}${BUILD_DAY, XX}.${BUILDS_TODAY, X}In this way, if my project started in 2015, the last build in that year would have a version number of 1.0.1231.1 for example.
And then instead of having to increment the minor version number, the next build in the new year would be 1.0.1301.1 for example.
It doesn't seem that the plugin currently supports this.
Thank you.
Originally reported by
rami, imported from: Ability to support simple arithmetic with the build version number
Raw content of original issue
environment