Ability to support simple arithmetic with the build version number

This issue is archived. You can view it, but you can't modify it. Learn more

XMLWordPrintable

      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.

            Assignee:
            Unassigned
            Reporter:
            Rami Abughazaleh
            Archiver:
            Jenkins Service Account

              Created:
              Updated:
              Archived: