2

Checkout is failing on feature branches on agent machines. Works fine on default branch. I have checked all agent machines have correct host fingerprints. Teamcity user has full administrative rights on machine but it is still failing to checkout.

Failed to start reason
Error while applying patch: Failed to perform checkout on agent: '"c:\program files\mercurial\hg.exe" --config ui.interactive=False update --config auth.tc.prefix=* --config auth.tc.username=test--config auth.tc.password=****** --config "auth.tc.schemes=http https" -C -r 2240521534ea'
command failed.

Any idea what I am missing here?

Zoe
  • 23,712
  • 16
  • 99
  • 132
sam
  • 4,388
  • 10
  • 56
  • 109
  • Can you run that command manually on the build agent? – Lasse V. Karlsen Jan 10 '14 at 11:47
  • Did you use a personal build in that checkout on that machine? This happened to me a few times in the past - I found that rolling back to a previous revision and discarding changes worked more often than not. – Wai Ha Lee Jan 10 '14 at 12:08
  • @LasseV.Karlsen, Yes I can run it fine using command manually on build agant. Its just with the teamcity that it keeps failing. Also tried doing a clean checkout and even by creating a new VCS root but it just fails for the feature branch and works fine for default branch. please guide – sam Jan 13 '14 at 10:36
  • Are you running the command on the build agent from the build agent work directory that it failed in (check the build log for the exact folder), and did you run it under the same user. – Lasse V. Karlsen Jan 13 '14 at 11:32
  • I used the following command on build agent using the same user accoutn: C:\Program Files\Mercurial>hg.exe clone https://hg.test.co.uk/test#1.8-dev Z:\testbranch. – sam Jan 13 '14 at 11:45

1 Answers1

0

In our team we've choosen to enforce clean checkout after few similar incidents. This is quick solution. Our repository is about 800 Mbytes but fast LAN saves us.

Kirill
  • 3,124
  • 1
  • 19
  • 36