简体   繁体   中英

Can't start a GIT build on Teamcity

I'm trying to configure a build with Teamcity and GIT. Getting the following error during checkout -

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

I've installed msysgit and git extensions and the above path contains git.exe. Any ideas?

I've found the solution. I was using the agentside checkout on Teamcity version 7.1.5 with GIT 1.8.3 while using the password authentication.

The Repo URL was missing .git in the end. Being a noob on GIT, didn't realize that was needed and was using SVN style URL. Adding .git resolved the issue.

Had the same error after switching VCS Checkout Mode to Automatically on Agent

Explicitly populating Path to Git with the full executable path in the VCS Root solved it.

I had the same issue because I forgot to install git on the agent.

The solution was simply to install git and restart the agent.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM