我在代理机器上遇到 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路径,但还是同样的错误
检查 git 是否真的存在: 在你的 jenkinsfile 中执行
whereis git
然后检查你的 Jenkins> 全局工具配置 再次。