79252516

Date: 2024-12-04 19:41:38
Score: 8 🚩
Natty:
Report link

I am getting the same error in Jenkins - **Failed to connect to repository : Error performing git command: git ls-remote -h *public github url *** HEAD

I am simply setting up Jenkins pipeline for a sample pgm on my local Windows Machine (not on any instance or cloud). I have done the below steps so far already. Still getting same error.

  1. Git is installed on my Machine for Windows checked the path for C->Program Files → Git → bin → git.exe otherwise download it.
  2. Provided the location to git.exe to Jenkins Mange Jenkins → Tools → Git installations → Path to Git executable in Path to Git executable.
  3. Also added Git installation to the $PATH Environment variable to use Git under User Variable.

Still getting same error. Can someone help.

Reasons:
  • RegEx Blacklisted phrase (3): Can someone help
  • RegEx Blacklisted phrase (1): I am getting the same error
  • Long answer (-0.5):
  • No code block (0.5):
  • Me too answer (2.5): I am getting the same error
  • Me too answer (0): getting same error
  • Unregistered user (0.5):
  • Low reputation (1):
Posted by: user28630957