For some reason, the environment variable BUILD_ID
for all jobs of all projects is set to the same as BUILD_NUMBER
.
The global environment variables by typing http://jenkins_server/env-vars.html
show the right format YYYY-MM-DD_hh-mm-ss
. This is shown on the job number 22:
BUILD_DISPLAY_NAME #22
BUILD_ID 22
BUILD_NUMBER 22
How to reset JOB_ID
back to the same as the global, using the same timestamp?
Do you use the Zen Timestamp plugin? If so, you can edit the "Date pattern for the BUILD_ID" configuration under Manage Jenkins -> Configure System in the Global Properties section.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With