Failed to connect to repository Error performing git command git ls-remote -h https github com jenikis hook git HEAD

If you get the above error when you setup Jenkins job, please follow the below steps.

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.

admin

Our team has expertise across software and web development, WordPress, e-commerce, mobile applications, UI/UX, cloud and infrastructure, DevOps, CI/CD, API integration, security, testing, automation, and technical support. The team also works with AI-based software solutions, LLMs, AI workflows, AI agents, and intelligent application development to help businesses automate processes and build smarter digital solutions. We focus on developing, deploying, maintaining, and optimising secure, scalable, and reliable technology solutions while helping businesses adopt modern technologies and drive digital transformation.

Leave a Reply

Scroll to Top