-
Bug
-
Resolution: Won't Fix
-
Minor
-
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
- is duplicated by
-
JENKINS-26624 Content of BUILD_ID environment variable changed from timestamp to build number
-
- Resolved
-
-
JENKINS-26679 BUILD_ID not containing build timestamp after 1.597 due to JENKINS-24380
-
- Resolved
-
-
JENKINS-26772 env-vars.html BUILD_ID documentation is incorrect
-
- Resolved
-
- is related to
-
JENKINS-26626 Zentimestamp plugin no longer compatible with Jenkins 1.597
-
- Resolved
-
-
JENKINS-24380 Use build numbers as IDs
-
- Resolved
-
- links to
[JENKINS-26520] Environment Variables BUILD_ID and BUILD_NUMBER now return the same value
Link |
New:
This issue is related to |
Link |
New:
This issue is duplicated by |
Link |
New:
This issue is related to |
I think BUILD_ID should keep the timestamp format. That is the documented behaviour at
https://wiki.jenkins-ci.org/display/JENKINS/Building+a+software+project
The BUILD_NUMBER variable gives the build number still.
The change of format has broken a couple of my deployment scripts that were expecting the date format.
I did a quick fix to use the old formatting code and that seems to have made things work for me. I have not submitted a pull request because I have not had chance to fully test things. For those who are interested the code is at
https://github.com/oldelvet/jenkins/tree/jenkins-26520