Export build timestamps to build env variables. # Configure `BUILD_TIMESTAMP` exported by default, and you can add more variables with different format patterns in Global Configure page. ![](docs/images/global-config.png) # Daylight Saving Time DST is not enabled by default. If your location uses DST, you can enable it by setting the `timezone` to the correct `city` such as `America/New_York`. # Using timestamps in Maven/Gradle/Shell They are available in Maven build and Gradle build as built-in properties/variables as well. Maven: As defined property in pom, equals to ``` syntaxhighlighter-pre System.getProperty('BUILD_TIMESTAMP') ``` Gradle: ``` syntaxhighlighter-pre System.getenv('BUILD_TIMESTAMP') ``` Shell: ``` syntaxhighlighter-pre "$BUILD_TIMESTAMP" ``` # Open Issues type key summary assignee reporter priority status resolution created updated due Data cannot be retrieved due to an unexpected error. [View these issues in Jira](https://issues.jenkins-ci.org/secure/IssueNavigator.jspa?reset=true&jqlQuery=project%20=%20JENKINS%20AND%20status%20in%20%28Open,%20%22In%20Progress%22,%20Reopened%29%20AND%20%28component%20=%20build-timestamp-plugin%29&tempMax=100&src=confmacro) # Changes ## 1.0.3 - [PR \#3](https://github.com/jenkinsci/build-timestamp-plugin/pull/3) ## 1.0.2 - Added Optional date/time shift For additional variables you can define shift (days, hours, minutes) which will be added to build timestamp. This allows to run build plan with previous day specified as parameter. ## 1.0.1 - Fixed validation issue (combobox does not support validation) ## 1.0.0 - Initial release.