How to use date as Build Parameter

Hello, I am new in Teamcity, and I would like to use date as a variable/parameter in my build script. This is the same as using %date% in command line. I tried to use one of the parameters in "Build Parameters" page, but I could not find anything related. from other posts I saw other people used this one: build.start.date , but it was not in the "Configuration Parameters" list.

Please help, as i need to use date in my script. thank you.

Best Regards

6 comments
Comment actions Permalink

For this, you need to install additional plugin called Groovy plug: http://confluence.jetbrains.net/display/TW/Groovy+plug

0
Comment actions Permalink

Hi thanks for your reply, I could not find a zip file in the link to download.  From CI server area just took me to a Teamcity menu, how can i download groovy?

Please help, thank you.

Regards

0
Comment actions Permalink

There is Download section on this page with links to builds for different TeamCity versions. For TeamCity version 7.0.x you can use this:
http://teamcity.jetbrains.com/viewType.html?buildTypeId=bt316&tab=buildTypeStatusDiv

0
Comment actions Permalink

Hi , thanks for your help, but the link sent took me to  a teamcity interface, and I do now know where to find groovyPlug.zip in there. I am kind of lost.

Regards

0
Comment actions Permalink

It works fine. thank you so much for sharing your knowledge.

Regards

0

Please sign in to leave a comment.