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 [email protected]:username/game-of-life.git HEAD
The URL is: [email protected]: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 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…