Reputation: 501
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
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