Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Jenkins: How to reset job's Build ID to be the same format as Jenkins Global?

Tags:

jenkins

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?

like image 256
roma Avatar asked Jan 21 '15 16:01

roma


1 Answers

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.

like image 121
Dave Bacher Avatar answered Oct 21 '22 05:10

Dave Bacher