views:

94

answers:

3

I have teamcity project that use mercurial. I did a few manually changes to the files in teamcity/buildAgent/work directory. The problem is that now I cannot update the files to the files in the repository.

How can I force re checkout for the teamcity? Is there any option to get rid of the old checkout?

A: 

There is a "Clean Sources" button on the project or build configuration page somewhere. If you click that the next build will automatically do a full checkout.

Evgeny
Where?.........
stacker
+1  A: 

Here is instructions how to solve this problem:

http://confluence.jetbrains.net/display/TCD4/Clean+Checkout

stacker
A: 

When I removed a Git submodule from my repository, it broke on my CI server.

The "Clean Sources" option did not work for me, but this did (from http://confluence.jetbrains.net/display/TCD4/Clean+Checkout):

TeamCity maintains an internal cache for the sources to optimize communications with the VCS server. The caches are reset during the cleanup time. To resolve problems with sources update, the caches may need to be reset manually. To do this, just delete <TeamCity Data Directory>/system/caches directory.

In my case, I simply had to run this command on the CI server:

rm -Rf ~/.BuildServer/system/caches
Ralf