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的權(quán)限,網(wǎng)上有很多相關(guān)的資料去排查。我出的問題很簡單,是因為布置jenkins服務(wù)的Linux打包機無法連外網(wǎng)了。
登錄Linux打包機,執(zhí)行 ping www.baidu.com
若發(fā)現(xiàn)無法ping通,則是網(wǎng)絡(luò)問題。我這次具體Linux打包機出錯原因是DNS配置的原因。