java.io.EOFException:块的简短读取。在Jenkins中扫描多分支管道时

时间:2018-02-27 10:38:41

标签: git jenkins github bitbucket

我有一个Jenkins盒子,里面有几个不同的项目,所有这些都运行得很好,除了这个。以下是完整的错误消息,非常感谢任何帮助。

[2月27日星期二10:30:53 UTC 2018]开始分支索引...

  

git --version #timetime = 10

使用GIT_SSH设置凭据

  

git ls-remote git@bitbucket.org:ShopDirect / galleryproductservice.git #timeout = 10

     

git rev-parse --is-inside-work-tree #timetime = 10

将原产地设定为git@bitbucket.org:ShopDirect / galleryproductservice.git

  

git config remote.origin.url git@bitbucket.org:ShopDirect / galleryproductservice.git #timeout = 10

取出&修剪起源...... 从原点获取上游变更

  

git --version #timetime = 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

检查分支机构......   检查分支主机

错误:[2月27日星期二10:30:56 UTC 2018]无法从源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)

[2月27日星期二10:30:56 UTC 2018]完成分支索引。索引花费了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)     at org.eclipse.jgit.internal.storage.file.ObjectDirectory.openLooseObject(ObjectDirectory.java:444)     at 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) 完成:失败

1 个答案:

答案 0 :(得分:0)

对此的解决方案是连接到Jenkins框并删除所有缓存的源,因为它们已经以某种方式变得腐败。这并没有删除任何数据,只是在第一次运行时花了大约10秒钟,同时为每个管道重新创建了新的源。