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

Environment Variables BUILD_ID and BUILD_NUMBER now return the same value

    Details

    • Type: Bug
    • Status: Resolved (View Workflow)
    • Priority: Minor
    • Resolution: Won't Fix
    • Component/s: core
    • Labels:
      None
    • Environment:
      Since version 1.597
    • Similar Issues:

      Description

      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

        Attachments

          Issue Links

            Activity

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

              People

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

                Dates

                • Created:
                  Updated:
                  Resolved: