Caused by: hudson.plugins.git.GitException: Command "git fetch --tags --progress http://gitee.com/xxxxx.git +refs/heads/*:refs/remotes/origin/*" returned status code 128:
stdout:
stderr: fatal: unable to access 'http://gitee.com/xxxxx.git/': Could not resolve host: gitee.com
at org.jenkinsci.plugins.gitclient.CliGitAPIImpl.launchCommandIn(CliGitAPIImpl.java:2450)
at org.jenkinsci.plugins.gitclient.CliGitAPIImpl.launchCommandWithCredentials(CliGitAPIImpl.java:2051)
at org.jenkinsci.plugins.gitclient.CliGitAPIImpl.access$500(CliGitAPIImpl.java:84)
at org.jenkinsci.plugins.gitclient.CliGitAPIImpl$1.execute(CliGitAPIImpl.java:573)
at hudson.plugins.git.GitSCM.fetchFrom(GitSCM.java:999)
... 11 more
ERROR: Error fetching remote repo 'origin'
问题写的是无法校验git的权限,网上有很多相关的资料去排查。我出的问题很简单,是因为布置jenkins服务的Linux打包机无法连外网了。
登录Linux打包机,执行 ping www.baidu.com
若发现无法ping通,则是网络问题。我这次具体Linux打包机出错原因是DNS配置的原因。
网友评论