如何修复Jenkins代理机器上的git clone错误?

oaxa6hgo  于 11个月前  发布在  Jenkins
关注(0)|答案(1)|浏览(125)

我在代理机器上得到git clone错误

ERROR: Error cloning remote repo 'origin'
hudson.plugins.git.GitException: Could not init /root/workspace/edjos
    at org.jenkinsci.plugins.gitclient.CliGitAPIImpl$5.execute(CliGitAPIImpl.java:997)
    at org.jenkinsci.plugins.gitclient.CliGitAPIImpl$2.execute(CliGitAPIImpl.java:752)
    at org.jenkinsci.plugins.gitclient.RemoteGitImpl$CommandInvocationHandler$GitCommandMasterToSlaveCallable.call(RemoteGitImpl.java:161)
    at org.jenkinsci.plugins.gitclient.RemoteGitImpl$CommandInvocationHandler$GitCommandMasterToSlaveCallable.call(RemoteGitImpl.java:154)
    at hudson.remoting.UserRequest.perform(UserRequest.java:211)
    at hudson.remoting.UserRequest.perform(UserRequest.java:54)

字符串
我也配置了代理git路径,但同样的错误

ws51t4hk

ws51t4hk1#

检查git是否真的存在:在jenkinsfile中执行whereis git
然后再次检查Jenkin> Global Tool Configuration。

相关问题