Uploaded image for project: 'Jenkins'
  1. Jenkins
  2. JENKINS-32736

Ability to support simple arithmetic with the build version number

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Minor Minor
    • versionnumber-plugin
    • Jenkins 1.646
      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.

            Unassigned Unassigned
            rami Rami Abughazaleh
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated: