Chinaunix首页 | 论坛 | 博客
  • 博客访问: 238601
  • 博文数量: 71
  • 博客积分: 10
  • 博客等级: 民兵
  • 技术积分: 817
  • 用 户 组: 普通用户
  • 注册时间: 2012-08-30 08:47
文章分类

全部博文(71)

文章存档

2021年(1)

2020年(2)

2019年(1)

2015年(1)

2014年(26)

2013年(40)

我的朋友

分类: 系统运维

2019-12-09 15:36:16

jenkins 构建提示如下错误信息:
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 15 13:41:30 fatal: index-pack failed 13:41:30  13:41:30  at org.jenkinsci.plugins.gitclient.CliGitAPIImpl.launchCommandIn(CliGitAPIImpl.java:2002) 13:41:30  at org.jenkinsci.plugins.gitclient.CliGitAPIImpl.launchCommandWithCredentials(CliGitAPIImpl.java:1721) 13:41:30  at org.jenkinsci.plugins.gitclient.CliGitAPIImpl.access$300(CliGitAPIImpl.java:72) 13:41:30  at org.jenkinsci.plugins.gitclient.CliGitAPIImpl$1.execute(CliGitAPIImpl.java:405) 13:41:30  at hudson.plugins.git.GitSCM.fetchFrom(GitSCM.java:886) 13:41:30  ... 11 more 13:41:30 ERROR: Error fetching remote repo 'origin'

原因:默认超时时间是10分钟,我们这个项目比较大,已经超过10分钟
解决方法:
jenkins项目=> 配置(configure) => git => Additional Behaviours => add => advanced clone behaviours
如图: 

阅读(4893) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~