A few projects in my client's solution have a post-build event: xcopy
the build output to a specific folder. This works fine when building locally. However, in TeamCity, I occasionally get
xcopy [...] exited with code 2
If I use regular copy
, it exits with code 1. I expect this has something to do with file locks, although the specific files being copied are not the same, so perhaps just locking on the shared destination directory. I use /y
to not prompt on overwriting files.
Why this fails in TeamCity but not locally?
The user pressed CTRL+C to terminate xcopy
. Hehe. – Synergetic