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

问题描述 投票:0回答:1

我在代理机器上遇到 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路径,但还是同样的错误

jenkins master-slave jenkins-agent
1个回答
0
投票

检查 git 是否真的存在: 在你的 jenkinsfile 中执行

whereis git

然后检查你的 Jenkins> 全局工具配置 再次。

© www.soinside.com 2019 - 2024. All rights reserved.