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

${BUILDS_THIS_YEAR} drops trailing 0

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Not A Defect
    • Icon: Minor Minor
    • versionnumber-plugin
    • Jenkins 2.7.4 VersionNumber-plugin 1.8.1

      Hi

      We are using version format ${BUILD_YEAR}.${BUILDS_THIS_YEAR}
      which works great for us until ${BUILDS_THIS_YEAR} ends with a 0, IE 10, 20. Then ${BUILDS_THIS_YEAR} will return 1 and 2, without the 0. This also happens when we are using ${BUILDS_THIS_YEAR, XXXX}, then it resolves to 001 instead of 0010.

      If you could fix this we would be very pleased

      regards
      Daniel

            Unassigned Unassigned
            danieljansson daniel jansson
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: