Teamcity: Failed to perform checkout on agent: Unable to run git at path C:\Program Files (x86)\Git\bin\sh.exe

StackOverflow https://stackoverflow.com/questions/19190999

문제

When I run my build it fails with the error:

Failed to perform checkout on agent: Unable to run git at path C:\Program Files (x86)\Git\bin\sh.exe

The path is correct, I can run the file and Teamcity is using my login account.

Is there somewhere I need to set more credentials, or start the service with Admin privileges?

I am running in Windows 8.

도움이 되었습니까?

해결책

The path is correct, but TeamCity wants to execute git.exe, not sh.exe.

다른 팁

I had a similar error to this.

The fix was to explicitly set the Path to Git in the VCS root to C:\Program Files (x86)\Git\bin\git.exe - ie: Exactly what @John-Hoerr suggests.

The value prior was an empty string.

The reason for the failure was not clear since the VCS Root was used in a template which was being used by other builds completely fine. Possibly something to do with a detached, reattached template that I had done.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top