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.