Failed to connect to repository : Error performing command: git.exe ls-remote -h https://github.com/szabbas/Sample-programs.git HEAD

Viewed 57429

enter image description hereI am new to programming and trying to work with GIT repository and while configuring with the JENKINS is facing the error. I know it's a silly question but on a beginner point of view I am stuck and can't move forward. Please help me in resolving the error.

I have my code at the GIT repository and trying to build using jenkins. But it is giving the error as : Failed to connect to repository : Error performing command: git.exe ls-remote -h https://github.com/szabbas/Sample-programs.git HEAD

I have done to get the cloning through the GID bash and it is cloning with no issues with the URl. I am also attchingenter image description here the image with the same.

4 Answers

Please give the installation path of git.exe in Git executable field in the Global Tool Configuration.In my case it worked after the path was set as below enter image description here

Related