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
Please sign in to leave a comment.
For this, you need to install additional plugin called Groovy plug: http://confluence.jetbrains.net/display/TW/Groovy+plug
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
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
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
Ok, here is a direct link to build artifacts:
http://teamcity.jetbrains.com/viewLog.html?buildId=53997&tab=artifacts&buildTypeId=bt316
It works fine. thank you so much for sharing your knowledge.
Regards