I occasionally have a problem where it appears that TeamCity checks out an old version of a file. For instance
- I fixed a failing test, but TeamCity didn't get the latest version, so it kept failing.
- I updated an install script on a new branch, but TeamCity didn't get the latest version, so it kept running the script with the old path.
The only thing that seems to fix the problem is to check "Enforce overwrite all files" in the VCS root configuration. But, the latest version of the docs do not mention this option. What does it do and why might that fix my problem?
My build configurations use
- VCS checkout mode: Automatically on server
- Clean all files before build: Yes