jenkins遇到的问题记录
·
特别傻的一次,,,,处理问题,希望以后不会遇到这种错误。
unable to access 'http://10.127.138.129/sysdev/seal.git/': !!!!!! s
说的很清楚,不能连接到10.127.138.129,就是网络不同,,,,后知后觉。
Building on master in workspace /root/.jenkins/jobs/sealTestGit/workspace
> git rev-parse --is-inside-work-tree # timeout=10
Fetching changes from the remote Git repository
> git config remote.origin.url http://10.127.138.129/sysdev/seal.git # timeout=10
Fetching upstream changes from http://10.127.138.129/sysdev/seal.git
> git --version # timeout=10
using GIT_ASKPASS to set credentials
> git fetch --tags --progress http://10.127.138.129/sysdev/seal.git +refs/heads/*:refs/remotes/origin/*
ERROR: Error fetching remote repo 'origin'
hudson.plugins.git.GitException: Failed to fetch from http://10.127.138.129/sysdev/seal.git
at hudson.plugins.git.GitSCM.fetchFrom(GitSCM.java:862)
at hudson.plugins.git.GitSCM.retrieveChanges(GitSCM.java:1129)
at hudson.plugins.git.GitSCM.checkout(GitSCM.java:1160)
at hudson.scm.SCM.checkout(SCM.java:504)
at hudson.model.AbstractProject.checkout(AbstractProject.java:1208)
at hudson.model.AbstractBuild$AbstractBuildExecution.defaultCheckout(AbstractBuild.java:574)
at jenkins.scm.SCMCheckoutStrategy.checkout(SCMCheckoutStrategy.java:86)
at hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:499)
at hudson.model.Run.execute(Run.java:1727)
at hudson.maven.MavenModuleSetBuild.run(MavenModuleSetBuild.java:542)
at hudson.model.ResourceController.execute(ResourceController.java:97)
at hudson.model.Executor.run(Executor.java:429)
Caused by: hudson.plugins.git.GitException: Command "git fetch --tags --progress http://10.127.138.129/sysdev/seal.git +refs/heads/*:refs/remotes/origin/*" returned status code 128:
stdout:
stderr: fatal: unable to access 'http://10.127.138.129/sysdev/seal.git/': Failed connect to 10.127.138.129:6001; Operation now in progress
at org.jenkinsci.plugins.gitclient.CliGitAPIImpl.launchCommandIn(CliGitAPIImpl.java:1996)
at org.jenkinsci.plugins.gitclient.CliGitAPIImpl.launchCommandWithCredentials(CliGitAPIImpl.java:1715)
at org.jenkinsci.plugins.gitclient.CliGitAPIImpl.access$300(CliGitAPIImpl.java:72)
at org.jenkinsci.plugins.gitclient.CliGitAPIImpl$1.execute(CliGitAPIImpl.java:405)
at hudson.plugins.git.GitSCM.fetchFrom(GitSCM.java:860)
... 11 more
ERROR: Error fetching remote repo 'origin'
SSH: Current build result is [FAILURE], not going to run.
Email was triggered for: Always
Sending email for trigger: Always
Sending email to: wangxiyue@cyou-inc.com wangxiaowei_dev@cyou-inc.com
Finished: FAILURE
网络不通,就算是能ping通,也不代表可以。
公司的网络环境复杂,jenkins在机器A(10.1.16.101)上,A通过B(10.1.31.40)访问10.127.138.129
最后
如果你觉得写的还不错,就关注下公众号呗,关注后,有点小礼物回赠给你。
你可以获得5000+电子书,java,springCloud,adroid,python等各种视频教程,IT类经典书籍,各种软件的安装及破解教程。
希望一块学习,一块进步!
更多推荐
已为社区贡献2条内容
所有评论(0)