What does “FATAL: merge base calculation error” mean?

I had Jenkins, who has been working for about a year. He creates the master, rc * and production units. With each commit, it performs git cloning, installs the package, performs the migration, etc. It works great. Recently, it fails, and I get the following trace:

FATAL: Error computing merge base hudson.plugins.git.GitException: Error computing merge base at hudson.plugins.git.util.GitUtils.filterTipBranches(GitUtils.java:149) at hudson.plugins.git.util.DefaultBuildChooser.getAdvancedCandidateRevisions(DefaultBuildChooser.java:201) at hudson.plugins.git.util.DefaultBuildChooser.getCandidateRevisions(DefaultBuildChooser.java:46) at hudson.plugins.git.GitSCM$2.invoke(GitSCM.java:1057) at hudson.plugins.git.GitSCM$2.invoke(GitSCM.java:948) at hudson.FilePath$FileCallableWrapper.call(FilePath.java:2417) at hudson.remoting.UserRequest.perform(UserRequest.java:118) at hudson.remoting.UserRequest.perform(UserRequest.java:48) at hudson.remoting.Request$2.run(Request.java:326) at hudson.remoting.InterceptingExecutorService$1.call(InterceptingExecutorService.java:72) at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:334) at java.util.concurrent.FutureTask.run(FutureTask.java:166) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603) at java.lang.Thread.run(Thread.java:679) 

The next display shows the following:

 Caused by: org.eclipse.jgit.errors.MissingObjectException: Missing commit 2faf546491565d033b1e0a79bef4b2d107447f49 at org.eclipse.jgit.internal.storage.file.WindowCursor.open(WindowCursor.java:149) at org.eclipse.jgit.revwalk.RevWalk.getCachedBytes(RevWalk.java:853) at org.eclipse.jgit.revwalk.RevCommit.parseHeaders(RevCommit.java:142) at org.eclipse.jgit.revwalk.MergeBaseGenerator.next(MergeBaseGenerator.java:148) at org.eclipse.jgit.revwalk.StartGenerator.next(StartGenerator.java:102) at org.eclipse.jgit.revwalk.RevWalk.next(RevWalk.java:414) at hudson.plugins.git.util.GitUtils.filterTipBranches(GitUtils.java:127) ... 14 more 

This commit error is also confused, since all branches include it.

What exactly does it mean: "Error calculating the merge base?" and why am I receiving a message with a missing message?

Any ideas here would be greatly appreciated.

Thanks.

git fsck:

 Checking object directories: 100% (256/256), done. Checking objects: 100% (3203/3203), done. 

In my Jenkins configuration, my git plugin configuration matters:

  • Remove workspace before assembly
  • Use a shallow clone

I am using Jenkins, ver. 1,528.

+6
source share
1 answer

In a previous twalberg comment, disabling the shallow clone solved this problem. All branches are built and completed tasks.

+7
source

Source: https://habr.com/ru/post/953185/


All Articles