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

0 votes

Hi Guys,

I am trying to integrate jenkins with GitHub. I installed all the plugins but still I am getting this below error.

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

How can I solve this error?

May 4 in Jenkins by akhtar
• 15,260 points
236 views

1 answer to this question.

0 votes

Hi@akhtar,

There may be several reasons behind this error. One the reason may be if you don't have git installed where you have jenkins server. To avoid this you can use the below given command.

$ yum install git

Another reason may be if you didn't configure the path of git in jenkins. To set git path you can follow the below steps.

  • Go to manage jenkins

  • From there click on Global tool configuration

  • There you can find git path option.

Hope this will solve your problem.

answered May 4 by MD
• 34,440 points

Related Questions In Jenkins

0 votes
2 answers

Error Jenkins: Failed to connect to repository

Jenkins runs as another user, not as ...READ MORE

answered Aug 7, 2019 in Jenkins by Sirajul
• 54,260 points
3,245 views
0 votes
1 answer

Error while talking to remote Oracle DB using Jenkins-CI

I installed Oracle XE to talk to ...READ MORE

answered May 1, 2018 in Jenkins by shubham
• 6,910 points
493 views
0 votes
1 answer

Jenkins failed to set git

Change to the jenkins user and run the command ...READ MORE

answered Jul 19, 2018 in Jenkins by Kalgi
• 2,620 points
1,953 views
+13 votes
2 answers

Git management technique when there are multiple customers and need multiple customization?

Consider this - In 'extended' Git-Flow, (Git-Multi-Flow, ...READ MORE

answered Mar 26, 2018 in DevOps & Agile by DragonLord999
• 8,420 points
555 views
0 votes
1 answer
0 votes
1 answer

Failed to connect to repository : Failed to create http proxy uri

Hi, To avoid this error, you have to ...READ MORE

answered Apr 10 in Jenkins by MD
• 34,440 points
154 views
0 votes
1 answer