【日常問題記錄】jenkins打包失敗

 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配置的原因。

?著作權(quán)歸作者所有,轉(zhuǎn)載或內(nèi)容合作請聯(lián)系作者
【社區(qū)內(nèi)容提示】社區(qū)部分內(nèi)容疑似由AI輔助生成,瀏覽時請結(jié)合常識與多方信息審慎甄別。
平臺聲明:文章內(nèi)容(如有圖片或視頻亦包括在內(nèi))由作者上傳并發(fā)布,文章內(nèi)容僅代表作者本人觀點,簡書系信息發(fā)布平臺,僅提供信息存儲服務(wù)。

相關(guān)閱讀更多精彩內(nèi)容

友情鏈接更多精彩內(nèi)容