+1 vote
1 view
in Devops and Agile by (28.1k points)

I am getting an error when inputting my repo location into the "Source Code Management > Git > Repository URL" section of a new Job. I have searched all around and tried many different URLs with no success.

Error:

Failed to connect to repository: Error performing the command: git ls-remote -h https://github.com/micdoodle8/Crossbow_Mod_2.git HEAD

Any ideas?

2 Answers

0 votes
by (20k points)

For this, you might need to set the path to your git executable in Manage Jenkins -> Configure System -> Git -> Git Installations -> Path to Git executable.

For example, I was getting the same error in Windows. I had installed git with chocolatey, and got the location via Powershell:

Get-Command git.exe | Select Definition

In Unix, you should be able to do:

which git

0 votes
by (140 points)
This error may occur if git is not installed on the Jenkins master server.
Welcome to Intellipaat Community. Get your technical queries answered by top developers !


Categories

...