IBM / dbb-zappbuild

zAppBuild is a generic build solution for building z/OS applications using Apache Groovy build scripts and IBM Dependency Based Build (DBB) APIs.
Apache License 2.0
40 stars 140 forks source link

Externalize the Build Folder Timestamp Format #312

Closed donnellt closed 1 year ago

donnellt commented 1 year ago

Signed-off-by: Timothy L. Donnelly donnellt@us.ibm.com

Currently in zAppBuild the timestamp used to construct the build folder is in 12 hour format. Clients have complained that this 12 hour format makes it difficult to sort the build output folders in chronological order. They would like the timestamp to be in 24 hour clock.

This update will create a new property in the "build.properties" file called buildOutputTSformat that will allow the client set the Date format method pattern string to what ever format they desire. The default value for this new property will be set to yyyyMMdd.HHhmmss.mmm to represent 24 hour format. This only applies to the build folder timestamp and build results entry name.

Within build.groovy a "** Build start at [timestamp]" message is emitted with a timestamp format in 12 hour format. This will not change so as not to impact any client-side automation.

If the new buildOutputTSformat property is not set (or blank), then the timestamp of the build folder will be set to the hardcoded format currently found in build.groovy.

dennis-behm commented 1 year ago

Apologies for the inconvenience for additional work with the sign-off of the commits