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

Environment Variables BUILD_ID and BUILD_NUMBER now return the same value

    • Icon: Bug Bug
    • Resolution: Won't Fix
    • Icon: Minor Minor
    • core
    • None
    • Since version 1.597

      With this release jenkins changed the build identifier to the build number (instead of timestamp). Now the BUILD_NUMBER and BUILD_ID both return the build number and there is no way to get the timestamp from the environment variables.
      According to the documentation BUILD_ID should return the timestamp.

      BUILD_ID
      The current build id, such as "2005-08-22_23-59-59" (YYYY-MM-DD_hh-mm-ss)

      Possible fixes:

      • Change BUILD_ID to return the timestamp
      • Add Env-Var BUILD_TIMESTAMP or similar

          [JENKINS-26520] Environment Variables BUILD_ID and BUILD_NUMBER now return the same value

          David Sommer created issue -
          Daniel Beck made changes -
          Link New: This issue is related to JENKINS-24380 [ JENKINS-24380 ]
          Daniel Beck made changes -
          Link New: This issue is duplicated by JENKINS-26624 [ JENKINS-26624 ]
          Michael Rentschler made changes -
          Link New: This issue is related to JENKINS-26626 [ JENKINS-26626 ]
          Jesse Glick made changes -
          Assignee New: Jesse Glick [ jglick ]
          Daniel Beck made changes -
          Link New: This issue is duplicated by JENKINS-26679 [ JENKINS-26679 ]
          Daniel Beck made changes -
          Link New: This issue is duplicated by JENKINS-26772 [ JENKINS-26772 ]
          Jesse Glick made changes -
          Resolution New: Won't Fix [ 2 ]
          Status Original: Open [ 1 ] New: Resolved [ 5 ]
          Jesse Glick made changes -
          Remote Link New: This issue links to "PR 1637 (Web Link)" [ 12301 ]
          R. Tyler Croy made changes -
          Workflow Original: JNJira [ 160590 ] New: JNJira + In-Review [ 196493 ]

            jglick Jesse Glick
            applican David Sommer
            Votes:
            20 Vote for this issue
            Watchers:
            33 Start watching this issue

              Created:
              Updated:
              Resolved: