plugin installation problem
Hi.
I am new to TeamCity, so maybe my question will show lack of knowledge.
I am using the latest version (4.5.4). I've Installed groovy plugin, as described here: http://www.jetbrains.net/confluence/display/TW/Groovy+plug.
now I am trying to use system.build.start.date for the check-out directory, but then the agents are incompatible.
How do I fix this?
Please sign in to leave a comment.
Can you provide server logs?
Attached
Attachment(s):
logs.rar
Could you please provide a screenshot of the build configuration settings page where you are using system.build.start.date property?
attached
Attachment(s):
ScreenShot.JPG
Sagie,
Currently there is an issue that prevents system./env. properties provided by the plugin to be used in the build configuration settings.
Current workaround is to patch ".BuildServer\config\__groovyPlug__\GroovyPropertyProvider.groovy" file by adding a line
into "addBuildStartTime" method.
And then use %build.start.date% instead of %system.build.start.date%.
BTW, can you please explain why do you need to change the checkout directory?
Thanks, It is working.
I Want to create a daily build server, and the path of the check-out directory needs to be c:\Bulds\<date>
Is there a better way of doing it?
Sagie,
If you need the checkout directory to have the date in the name this approach is probably the easiest one. However, for it to work reliable you should probably set "clean all files before build" to true. TeamCity can fail to checkout correct sources if the checkout directory changes on each build.
Can I ask why do you need to checkout the sources into a directory with new name each day?
Hi.
I already set "clean all files before build" to true, but I want that every daily build start in a new empty folder, and still have backup for older builds