When I try to give GitHub repository URL in Source Code Management (GIT) in Jenkins, I'm getting this error:
Failed to connect to repository : Error performing command: git ls-remote -h https://github.com/chowdarydevops/test.git HEAD
When I try to give GitHub repository URL in Source Code Management (GIT) in Jenkins, I'm getting this error:
Failed to connect to repository : Error performing command: git ls-remote -h https://github.com/chowdarydevops/test.git HEAD
Most likely the SSL certificate is unable to be verified so SSL/TLS may need to add the relevant CRT for your system.
GIT_SSL_NO_VERIFY=true git ls-remote -h https://github.com/chowdarydevops/test.git HEAD
or
git -c http.sslVerify=false ls-remote -h https://github.com/chowdarydevops/test.git HEAD
see how-can-i-make-git-accept-a-self-signed-certificate and how-do-i-set-git-ssl-no-verify-for-specific-repos-only for more info