我正在和jenkins一起使用github。 我能够成功克隆github存储库但是当我在Jenkins中添加存储库的URL时,我收到以下错误:
Failed to connect to repository : Error performing command: C:\Users\username\Documents\GitHub ls-remote -h git@github.com:username/game-of-life.git HEAD
网址为:git@github.com:username / game-of-life.git
我在jenkins主配置中添加了github的路径,即:
C:\ Users \用户名\文件\ GitHub的
我尝试过其他解决方案,例如为github和jenkins生成ssh密钥。
有关此错误的任何想法? 感谢。
答案 0 :(得分:0)
在Jenkins系统配置中,添加git.exe文件的路径。 就我而言,git.exe在
中C:\ Users \用户名\应用程序数据\本地\ GitHub的\ PortableGit_some#\ BIN \ git.exe
没有用,但...... cmd \ gitk.cmd中的“gitk.cmd”工作正常。