Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Using TeamCity build templates how can I remove "Clean all files before build" from the template?

Tags:

teamcity

I have a number of daily and in-response-to-svn-change builds that all derive from the same configuration template. I can set it so I can choose what branch to look at, what build steps to carry out and of course what triggers the build.

However I would like the daily builds to do a completely clean checkout, whereas the svn dependent ones (that obviously happen throughout the day) I am happy for them to simply to an update.

Simply un-setting the option in the template does not let me set them in each of the derived builds. Is there a build parameter that I can use to switch on clean builds for those builds that require it?

like image 582
Loofer Avatar asked Dec 22 '22 07:12

Loofer


2 Answers

In each Project's "Version Control Settings", look under "Checkout setting". There are options to specify the checkout dir and also a checkbox to clean files before a build.

like image 85
savinderpuri Avatar answered Dec 31 '22 14:12

savinderpuri


There is an Additional Build Feature (Swabra) you can add that does a clean checkout if required.I have enabled this for our nightly builds but have not yet investigated the consequences.

See here for more detail on Swabra

like image 29
Loofer Avatar answered Dec 31 '22 14:12

Loofer