0
回答
jenkin docker 自动化构建
终于搞明白,存储TCO原来是这样算的>>>   

环境: centOS 7 

jenkins 1.8.3.1

docker 1.12.6

jenkins 全局配置

git 拉取代码地址

build 的时候出现以下

错误信息:

Started by user wang5862199
Building in workspace /var/lib/jenkins/workspace/test
 > /usr/local/bin/git/bin/git rev-parse --is-inside-work-tree # timeout=10
Fetching changes from the remote Git repository
 > /usr/local/bin/git/bin/git config remote.xaidanwang.url https://github.com/xaidanwang/cloud-eureka-server.git # timeout=10
Fetching upstream changes from https://github.com/xaidanwang/cloud-eureka-server.git
 > /usr/local/bin/git/bin/git --version # timeout=10
 > /usr/local/bin/git/bin/git fetch --tags --progress https://github.com/xaidanwang/cloud-eureka-server.git +refs/heads/*:refs/remotes/xaidanwang/*
ERROR: Error fetching remote repo 'xaidanwang'
hudson.plugins.git.GitException: Failed to fetch from https://github.com/xaidanwang/cloud-eureka-server.git
	at hudson.plugins.git.GitSCM.fetchFrom(GitSCM.java:817)
	at hudson.plugins.git.GitSCM.retrieveChanges(GitSCM.java:1084)
	at hudson.plugins.git.GitSCM.checkout(GitSCM.java:1115)
	at hudson.scm.SCM.checkout(SCM.java:495)
	at hudson.model.AbstractProject.checkout(AbstractProject.java:1276)
	at hudson.model.AbstractBuild$AbstractBuildExecution.defaultCheckout(AbstractBuild.java:560)
	at jenkins.scm.SCMCheckoutStrategy.checkout(SCMCheckoutStrategy.java:86)
	at hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:485)
	at hudson.model.Run.execute(Run.java:1735)
	at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:43)
	at hudson.model.ResourceController.execute(ResourceController.java:97)
	at hudson.model.Executor.run(Executor.java:405)
Caused by: hudson.plugins.git.GitException: Command "/usr/local/bin/git/bin/git fetch --tags --progress https://github.com/xaidanwang/cloud-eureka-server.git +refs/heads/*:refs/remotes/xaidanwang/*" returned status code 128:
stdout: 
stderr: fatal: index file smaller than expected

	at org.jenkinsci.plugins.gitclient.CliGitAPIImpl.launchCommandIn(CliGitAPIImpl.java:1924)
	at org.jenkinsci.plugins.gitclient.CliGitAPIImpl.launchCommandWithCredentials(CliGitAPIImpl.java:1643)
	at org.jenkinsci.plugins.gitclient.CliGitAPIImpl.access$300(CliGitAPIImpl.java:71)
	at org.jenkinsci.plugins.gitclient.CliGitAPIImpl$1.execute(CliGitAPIImpl.java:352)
	at hudson.plugins.git.GitSCM.fetchFrom(GitSCM.java:815)
	... 11 more
ERROR: Error fetching remote repo 'xaidanwang'
Finished: FAILURE
<无标签>
举报
aidanWang
发帖于1个月前 0回/25阅
顶部