Details
-
Bug
-
Status: Resolved (View Workflow)
-
Major
-
Resolution: Fixed
-
None
Description
With Jenkins 1.597, the environment variable BUILD_ID was changed from timestamp to the build number. The zentimestamp plugin can not alter the content of BUILD_ID anymore. A new environment variable should be introduced, like BUILD_TIMESTAMP. This can be modified by the plugin then.
Attachments
Issue Links
- is blocking
-
JENKINS-29873 Zentimestamp should set BUILD_TIMESTAMP variable in any case
-
- Open
-
- is related to
-
JENKINS-26624 Content of BUILD_ID environment variable changed from timestamp to build number
-
- Resolved
-
-
JENKINS-24380 Use build numbers as IDs
-
- Resolved
-
-
JENKINS-26520 Environment Variables BUILD_ID and BUILD_NUMBER now return the same value
-
- Resolved
-
- links to
With older Jenkins versions, the timestamp environment variable (formerly BUILD_ID) was
already set to the default timestamp format by the Jenkins core and was only modified by the Zen Timestamp plugin if the option "Change date pattern" was checked (inside the job or node configuration) and a different format was selected.
The new Zen plugin must be fixed to set the BUILD_TIMESTAMP variable in any case, even if there was no format defined inside the job or node configuration, by using the default timestamp format. This must be done by the plugin now, since BUILD_TIMESTAMP is not set by the core anymore.