Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Can't start a GIT build on Teamcity

Tags:

git

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?

like image 436
Nikhil Gupta Avatar asked Sep 24 '13 07:09

Nikhil Gupta


3 Answers

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.

like image 174
fiat Avatar answered Sep 21 '22 13:09

fiat


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.

like image 27
Nikhil Gupta Avatar answered Sep 20 '22 13:09

Nikhil Gupta


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.

like image 42
Benoit Blanchon Avatar answered Sep 21 '22 13:09

Benoit Blanchon