我在代理机器上得到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路径,但同样的错误
1条答案
按热度按时间ws51t4hk1#
检查git是否真的存在:在jenkinsfile中执行
whereis git
然后再次检查Jenkin> Global Tool Configuration。