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

Ability to support simple arithmetic with the build version number

    • 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.

          [JENKINS-32736] Ability to support simple arithmetic with the build version number

          Rami Abughazaleh created issue -
          Rami Abughazaleh made changes -
          Description Original: 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.
          New: 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:

          {code:java}
          1.0.(1200 * ${YEARS_SINCE_PROJECT_START}) + ${BUILD_MONTH, X}${BUILD_DAY, XX}.${BUILDS_TODAY, X}
          {code}

          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.
          R. Tyler Croy made changes -
          Workflow Original: JNJira [ 168400 ] New: JNJira + In-Review [ 183109 ]
          daniel jansson made changes -
          Description Original: 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:

          {code:java}
          1.0.(1200 * ${YEARS_SINCE_PROJECT_START}) + ${BUILD_MONTH, X}${BUILD_DAY, XX}.${BUILDS_TODAY, X}
          {code}

          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.
          New: 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:

          {code:java}
          1.0.(1200 * ${YEARS_SINCE_PROJECT_START}) + ${BUILD_MONTH, X}${BUILD_DAY, XX}.${BUILDS_TODAY, X}
          {code}

          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: