A way to get date+time into build label?
Hello all,
Is there a way to have my build label incorporate the current datetime as a number?
I.e. rather than having my label be "mybranch-daily-%system.build.number%", I'd like it to be something like "mybranch-daily-%system.time.asinteger%"
Is this possible?
Thank you,
Sebastian
Please sign in to leave a comment.
Sebastian,
Please watch/vote for the feature request:http://jetbrains.net/tracker/issue2/TW-4080
As a workaround, see the issue comments: there is a plugin providing the properties.
Hi Yegor,
Thank you for posting the link to this. I followed the instructions for installing the plugin, but I'm not sure if I did everything correctly. Now when I try to run my build, no agents are available because system.build.start.date and system.build.start.time are not present in any agent.
I am passing the label like so: mybuild-continuous-%system.build.start.date%%system.build.start.time%
I am doing this both in VCS setting and as arguments being passed to the Rake runner. Is that incorrect.
This is on TeamCity v.4.0.2 (8222)
Best,
Sebastian
Sebastian,
You can use %system.build.start.time% in the build number format field and in VCS labeling pattern fields.
I will look into using the properties in runner settings or other properties, but I am afraid this is currently not available.
Hi!
I've installed the plug-in, as said:
http://www.jetbrains.net/confluence/display/TW/Groovy+plug
When labeling, the expression about Build number is replaced but not the expression about date.
No trace of dysfunctionment. No log.
Olivier.
Quick question: does this plug-in requires a Groovy distribution, a GROOVY_HOME environment variable to be set...?
Olivier.
Hi I could not find how to download Groovy plug . I clicked to download link but it actually opend a teamcity interface. How do you download Groovy plug?
Please help me. thanks.
Answered in http://devnet.jetbrains.net/thread/436094