How to stop Team City to do random VCS clean

Hi all,

I'm new to Team City, but I have used other Build System before.
Currently, I'm facing the issue where I do the checkout on the agent.
I want to avoid clean at all cost unless specified manually.
Unfortunately, it's not the case right now and I don't know how to set that up.

One example of that problem just happen this morning:
     I've disabled an agent to ensure something was properly set up on the machine.
     When enabling the agent, I found out that all the source that were previously checked out were gone and I'm 100% sure that it was caused by team city.

Another case that I remember:
     I was modifying a configuration, and maybe it's VCS settings, and the next agent taking the job had its sources cleaned up.

So I'd like to know how to avoid all of these cases.

Also, none of them have the "Clean sources before build" option checked and I'm using perforce.


1 comment
Comment actions Permalink

Have you seen this page:

'never' is the settings I think you are looking for.

However it sounds like you may have been playing around with VCS settings in which case I don't think that setting would have stopped the clean checkout, I think it's by design in this case.


Please sign in to leave a comment.