I am trying to connect Jenkins with GitHub and getting error as “Failed to connect with repository” in Jenkins.
For this I have followed below steps…
- Created repository and From Settings–>IntegrationAnd Services have updated “Jenkins Hook url”.
- Tested connectivity and from GitHub and looks fine.
- Installed Jenkins on Tomcat.
- When tried to create an item with “Free style project” getting below error in connecting with GIT repo in “Source Code management”
“Failed to connect to repository : Error performing command: git.exe ls-remote -h https://github.com/Baharul1/Try_Jenkins.git HEAD”
3.Also have verified network connectivity looks good from system where jenkins is insta to GitHub
Can anyone please help on this.
Please note I didn’t installed GitHub on local system. Does it require to install always?