【发布时间】:2018-08-06 23:31:22
【问题描述】:
我有一个 Jenkins 盒子,里面有几个不同的项目,除了这个之外,所有项目都运行良好。以下是完整的错误消息,任何帮助将不胜感激。
[2018 年 2 月 27 日星期二 10:30:53 UTC] 开始分支索引...
git --version # timeout=10
使用 GIT_SSH 设置凭据
git ls-remote git@bitbucket.org:ShopDirect/galleryproductservice.git #timeout=10
git rev-parse --is-inside-work-tree # timeout=10
将来源设置为 git@bitbucket.org:ShopDirect/galleryproductservice.git
git config remote.origin.url git@bitbucket.org:ShopDirect/galleryproductservice.git # timeout=10
正在获取和修剪原点... 从原点获取上游更改
git --version # timeout=10
使用 GIT_SSH 设置凭据
git fetch --tags --progress origin +refs/heads/:refs/remotes/origin/ --prune
列出远程引用...
git config --get remote.origin.url # timeout=10 使用 GIT_SSH 设置凭据
git ls-remote -h git@bitbucket.org:ShopDirect/galleryproductservice.git # timeout=10
检查分支... 检查分支主控
错误:[2018 年 2 月 27 日星期二 10:30:56 UTC] 无法从源 4f8abeb4-bbc0-4de0-bf74-9b2c3cf1cb71 获取分支
java.io.EOFException: 块的短读。
at org.eclipse.jgit.util.IO.readFully(IO.java:249)
at org.eclipse.jgit.internal.storage.file.UnpackedObject.open(UnpackedObject.java:105)
at org.eclipse.jgit.internal.storage.file.ObjectDirectory.openLooseObject(ObjectDirectory.java:444)
at org.eclipse.jgit.internal.storage.file.ObjectDirectory.openLooseFromSelfOrAlternate(ObjectDirectory.java:403)
at org.eclipse.jgit.internal.storage.file.ObjectDirectory.openObject(ObjectDirectory.java:385)
at org.eclipse.jgit.internal.storage.file.WindowCursor.open(WindowCursor.java:154)
at org.eclipse.jgit.treewalk.CanonicalTreeParser.reset(CanonicalTreeParser.java:214)
at org.eclipse.jgit.treewalk.TreeWalk.parserFor(TreeWalk.java:1286)
at org.eclipse.jgit.treewalk.TreeWalk.reset(TreeWalk.java:699)
at org.eclipse.jgit.treewalk.TreeWalk.forPath(TreeWalk.java:207)
at org.eclipse.jgit.treewalk.TreeWalk.forPath(TreeWalk.java:249)
at org.eclipse.jgit.treewalk.TreeWalk.forPath(TreeWalk.java:281)
at jenkins.plugins.git.AbstractGitSCMSource$TreeWalkingSCMProbe.stat(AbstractGitSCMSource.java:1345)
at org.jenkinsci.plugins.workflow.multibranch.WorkflowBranchProjectFactory$1.isHead(WorkflowBranchProjectFactory.java:74)
at jenkins.scm.api.trait.SCMSourceRequest.process(SCMSourceRequest.java:344)
at jenkins.plugins.git.AbstractGitSCMSource$8.discoverBranches(AbstractGitSCMSource.java:557)
at jenkins.plugins.git.AbstractGitSCMSource$8.run(AbstractGitSCMSource.java:535)
at jenkins.plugins.git.AbstractGitSCMSource$8.run(AbstractGitSCMSource.java:521)
at jenkins.plugins.git.AbstractGitSCMSource.doRetrieve(AbstractGitSCMSource.java:352)
at jenkins.plugins.git.AbstractGitSCMSource.retrieve(AbstractGitSCMSource.java:521)
at jenkins.scm.api.SCMSource._retrieve(SCMSource.java:355)
at jenkins.scm.api.SCMSource.fetch(SCMSource.java:265)
at jenkins.branch.MultiBranchProject.computeChildren(MultiBranchProject.java:634)
at com.cloudbees.hudson.plugins.folder.computed.ComputedFolder.updateChildren(ComputedFolder.java:276)
at com.cloudbees.hudson.plugins.folder.computed.FolderComputation.run(FolderComputation.java:165)
at jenkins.branch.MultiBranchProject$BranchIndexing.run(MultiBranchProject.java:978)
at hudson.model.ResourceController.execute(ResourceController.java:97)
at hudson.model.Executor.run(Executor.java:421)
[2018 年 2 月 27 日星期二 10:30:56 UTC] 已完成分支索引。索引耗时 2.8 秒 致命:无法重新计算 GalleryProductService 的子项 java.io.EOFException:块的短读。 在 org.eclipse.jgit.util.IO.readFully(IO.java:249) 在 org.eclipse.jgit.internal.storage.file.UnpackedObject.open(UnpackedObject.java:105) 在 org.eclipse.jgit.internal.storage.file.ObjectDirectory.openLooseObject(ObjectDirectory.java:444) 在 org.eclipse.jgit.internal.storage.file.ObjectDirectory.openLooseFromSelfOrAlternate(ObjectDirectory.java:403) 在 org.eclipse.jgit.internal.storage.file.ObjectDirectory.openObject(ObjectDirectory.java:385) 在 org.eclipse.jgit.internal.storage.file.WindowCursor.open(WindowCursor.java:154) 在 org.eclipse.jgit.treewalk.CanonicalTreeParser.reset(CanonicalTreeParser.java:214) 在 org.eclipse.jgit.treewalk.TreeWalk.parserFor(TreeWalk.java:1286) 在 org.eclipse.jgit.treewalk.TreeWalk.reset(TreeWalk.java:699) 在 org.eclipse.jgit.treewalk.TreeWalk.forPath(TreeWalk.java:207) 在 org.eclipse.jgit.treewalk.TreeWalk.forPath(TreeWalk.java:249) 在 org.eclipse.jgit.treewalk.TreeWalk.forPath(TreeWalk.java:281) 在 jenkins.plugins.git.AbstractGitSCMSource$TreeWalkingSCMProbe.stat(AbstractGitSCMSource.java:1345) 在 org.jenkinsci.plugins.workflow.multibranch.WorkflowBranchProjectFactory$1.isHead(WorkflowBranchProjectFactory.java:74) 在 jenkins.scm.api.trait.SCMSourceRequest.process(SCMSourceRequest.java:344) 在 jenkins.plugins.git.AbstractGitSCMSource$8.discoverBranches(AbstractGitSCMSource.java:557) 在 jenkins.plugins.git.AbstractGitSCMSource$8.run(AbstractGitSCMSource.java:535) 在 jenkins.plugins.git.AbstractGitSCMSource$8.run(AbstractGitSCMSource.java:521) 在 jenkins.plugins.git.AbstractGitSCMSource.doRetrieve(AbstractGitSCMSource.java:352) 在 jenkins.plugins.git.AbstractGitSCMSource.retrieve(AbstractGitSCMSource.java:521) 在 jenkins.scm.api.SCMSource._retrieve(SCMSource.java:355) 在 jenkins.scm.api.SCMSource.fetch(SCMSource.java:265) 在 jenkins.branch.MultiBranchProject.computeChildren(MultiBranchProject.java:634) 在 com.cloudbees.hudson.plugins.folder.computed.ComputedFolder.updateChildren(ComputedFolder.java:276) 在 com.cloudbees.hudson.plugins.folder.computed.FolderComputation.run(FolderComputation.java:165) 在 jenkins.branch.MultiBranchProject$BranchIndexing.run(MultiBranchProject.java:978) 在 hudson.model.ResourceController.execute(ResourceController.java:97) 在 hudson.model.Executor.run(Executor.java:421) 完成:失败
【问题讨论】:
标签: git jenkins github bitbucket