分类: 系统运维
2019-12-09 15:36:16
13:31:30 Started by user xxx 13:31:30 Building in workspace /data1/jenkins/workspace/xxx 13:31:30 > git rev-parse --is-inside-work-tree # timeout=10 13:31:30 Fetching changes from the remote Git repository 13:31:30 > git config remote.origin.url # timeout=10 13:31:30 Fetching upstream changes from .git 13:31:30 > git --version # timeout=10 13:31:30 using GIT_ASKPASS to set credentials 13:31:30 > git fetch --tags --progress +refs/heads/*:refs/remotes/origin/* 13:41:30 ERROR: Timeout after 10 minutes 13:41:30 ERROR: Error fetching remote repo 'origin' 13:41:30 hudson.plugins.git.GitException: Failed to fetch from .git 13:41:30 at hudson.plugins.git.GitSCM.fetchFrom(GitSCM.java:888) 13:41:30 at hudson.plugins.git.GitSCM.retrieveChanges(GitSCM.java:1155) 13:41:30 at hudson.plugins.git.GitSCM.checkout(GitSCM.java:1186) 13:41:30 at hudson.scm.SCM.checkout(SCM.java:504) 13:41:30 at hudson.model.AbstractProject.checkout(AbstractProject.java:1208) 13:41:30 at hudson.model.AbstractBuild$AbstractBuildExecution.defaultCheckout(AbstractBuild.java:574) 13:41:30 at jenkins.scm.SCMCheckoutStrategy.checkout(SCMCheckoutStrategy.java:86) 13:41:30 at hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:499) 13:41:30 at hudson.model.Run.execute(Run.java:1810) 13:41:30 at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:43) 13:41:30 at hudson.model.ResourceController.execute(ResourceController.java:97) 13:41:30 at hudson.model.Executor.run(Executor.java:429) 13:41:30 Caused by: hudson.plugins.git.GitException: Command "git fetch --tags --progress +refs/heads/*:refs/remotes/origin/*" returned status code 128: 13:41:30 stdout: 13:41:30 stderr: remote: Enumerating objects: 24971 remote: Enumerating objects: 494, done. 13:41:30 remote: Counting objects: 0% (1/494) remote: Counting objects: 1% (5/494) remote: Counting objects: 2% (10/494) remote: Counting objects: 3% (15/494) remote: Counting objects: 4% (20/494) remote: Counting objects: 5% (25/494) ......
......
Receiving objects: 39% (10046/25465), 293.33 MiB | 264.00 KiB/s Receiving objects: 39% (10046/25465), 293.61 MiB | 245.00 KiB/s Receiving objects: 39% (10046/25465), 293.63 MiB | 246.00 KiB/s error: index-pack died of signal 15fatal: index-pack failed at org.jenkinsci.plugins.gitclient.CliGitAPIImpl.launchCommandIn(CliGitAPIImpl.java:2002) at org.jenkinsci.plugins.gitclient.CliGitAPIImpl.launchCommandWithCredentials(CliGitAPIImpl.java:1721) 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:886) ... 11 more ERROR: Error fetching remote repo 'origin'原因:默认超时时间是10分钟,我们这个项目比较大,已经超过10分钟解决方法:jenkins项目=> 配置(configure) => git => Additional Behaviours => add => advanced clone behaviours如图: