Ganesh Rao B
Ganesh Rao B

Reputation: 501

Jenkins build number changing to data and time

I want to change the build number format (e.g. #10) to the date/time format YYYYMMDD-SSMMHH, e.g., 20160812-062713.

I have tried the build-name-setter and version number plugins, which did not help me adding date and time. Is there any option to do this?

Upvotes: 2

Views: 2277

Answers (1)

mspg
mspg

Reputation: 128

The Build Timestamp Plugin can produce an environment variable ${BUILD_TIMESTAMP} that can be read and applied by the Build Name Setter Plugin.

Upvotes: 2

Related Questions