I am using github with jenkins. I was able to successfully clone the github repository but when I add the URL of repository in Jenkins, I am getting following error:
Failed to connect to repository : Error performing command: C:UsersusernameDocumentsGitHub ls-remote -h git@github.com:username/game-of-life.git HEAD
The URL is: git@github.com:username/game-of-life.git
I have added the path of github in jenkins main configuration, which is:
C:UsersusernameDocumentsGitHub
I have tried other solutions such as generating ssh keys for github and jenkins.
Any idea about this error? Thanks.
See Question&Answers more detail:os