Tom Moore commented on Bug JENKINS-26520

To add a variable usable as a environment variable, you can use the Prepare an environment for the run section. This requires groovy installed on your system.
Add an evaluated Groovy script with the following... (or if you already have a groovy script here, incorporate this code)

import java.text.SimpleDateFormat

def map = [ "BUILD_TIMESTAMP":new SimpleDateFormat("yyyy-MM-dd_kk-mm-ss").format(new Date()) ]
return map

This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators.
For more information on JIRA, see: http://www.atlassian.com/software/jira

--
You received this message because you are subscribed to the Google Groups "Jenkins Issues" group.
To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-issues+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to