Failed to perform checkout on agent

Failed to perform checkout on agent: '"C:\Program Files\Git\bin\git.exe" -c core.askpass=C:\TeamCity\buildAgent\temp\buildTmp\pass8517307457314531623.bat -c credential.helper= -c credential.helper=C:/TeamCity/buildAgent/temp/buildTmp/credHelper4649196994804332385.bat reset --hard 1df124bae56fa97bbfd0c144a85fa80cacd4fedb' command failed.

 

Please note, I have tried adding "teamcity.git.use.native.ssh=true" in C:\TeamCity\buildAgent\conf\buildAgent.properties file at the end of file. Also tried adding "Configuration Parameters" but no avail. any guidance will be appreciated. 

0
2 comments

Hi Pawan,

usually that message is accompanied of a more detailed error indicating why it failed. It would be useful to have the lines around it to understand the exact context of the error. If you want, you can send us the full build log file via the "Submit a request" button above, which would make it private if you don't want to disclose any information on it.

0
Avatar
Permanently deleted user

In my case I found this error:

 

[Updating sources] Failed to perform checkout on agent: '"C:\Program Files\Git\bin\git.exe" -c core.askpass=D:\Tools\TeamCity\buildAgent\temp\buildTmp\pass6080643425940784142.bat -c credential.helper= -c credential.helper=D:/Tools/TeamCity/buildAgent/temp/buildTmp/credHelper3389819524721361555.bat reset --hard 72b5836a5f7f73fbdba8c736c9783da0780332f7' command failed.
exit code: 128
stderr: fatal: Unable to create 'D:/Tools/TeamCity/buildAgent/work/c8b998832d0150c6/.git/index.lock': File exists

 

Where I had a  TortoiseGit window open.  After closing this window the error went away.

 

 

0

Please sign in to leave a comment.