-
Bug
-
Resolution: Duplicate
-
Critical
-
None
-
Jenkins 2.19.3, git-client plugin 2.10
-
-
tasman, Blue Ocean 1.3
Upgrading the git-client plugin and noticed that pull request builds behind our GitHub Organization Folders started to fail across the board with the following exception:
Caught: hudson.plugins.git.GitException: org.eclipse.jgit.errors.MissingObjectException: Missing commit 06f18bc86352142786ef533c91350863b382631c
Full log from one such build.
Branch indexing Connecting to https://api.github.com using jenkinsadmin/****** (GitHub access token for jenkinsadmin) Cloning the remote Git repository remote: Counting objects remote: Compressing objects Receiving objects Resolving deltas Updating references Merging master commit 3d19d905686b173b8916ee0247d906f536429621 into PR head commit 06f18bc86352142786ef533c91350863b382631c Merge succeeded, producing 06f18bc86352142786ef533c91350863b382631c Checking out Revision 06f18bc86352142786ef533c91350863b382631c (PR-458) First time build. Skipping changelog. [Pipeline] properties [Pipeline] node Running on celery in /home/jenkins/agent-workspace/workspace/Infra_jenkins.io_PR-458-WGT3J3NBHKU6J2KK5XLMWWKKN2CDZN42K6EQVSUQWUMNA4CYPZQA [Pipeline] { [Pipeline] stage (Clean workspace) Using the ‘stage’ step without a block argument is deprecated Entering stage Clean workspace Proceeding [Pipeline] deleteDir [Pipeline] sh [Infra_jenkins.io_PR-458-WGT3J3NBHKU6J2KK5XLMWWKKN2CDZN42K6EQVSUQWUMNA4CYPZQA] Running shell script + ls -lah total 24K drwxrwxr-x 2 jenkins jenkins 4.0K Nov 17 14:37 . drwxrwxr-x 94 jenkins jenkins 20K Nov 17 14:37 .. [Pipeline] stage (Checkout source) Using the ‘stage’ step without a block argument is deprecated Entering stage Checkout source Proceeding [Pipeline] checkout Cloning the remote Git repository remote: Counting objects remote: Compressing objects Receiving objects Resolving deltas Updating references Merging master commit 3d19d905686b173b8916ee0247d906f536429621 into PR head commit 06f18bc86352142786ef533c91350863b382631c Merge succeeded, producing 06f18bc86352142786ef533c91350863b382631c Checking out Revision 06f18bc86352142786ef533c91350863b382631c (PR-458) [Pipeline] } [Pipeline] // node [Pipeline] echo Caught: hudson.plugins.git.GitException: org.eclipse.jgit.errors.MissingObjectException: Missing commit 06f18bc86352142786ef533c91350863b382631c [Pipeline] mail [Pipeline] End of Pipeline
- is blocked by
-
JENKINS-39704 Autofavouriting breaks first build of a new job/branch
-
- Closed
-
- relates to
-
JENKINS-43400 Autofavorite broken on remote agents
-
- Open
-
-
JENKINS-46639 autofavourite fails with git-client plugin and jgit 4.5.3
-
- Closed
-
- links to
[JENKINS-39832] org.eclipse.jgit.errors.MissingObjectException: Missing commit
Assignee | Original: Mark Waite [ markewaite ] |
Assignee | New: Stephen Connolly [ stephenconnolly ] |
Unfortunately, I don't find the strings "Merging " or "Merge succeeded" in either the git plugin or the git client plugin. I would speculate that some other plugin is using the JGit library provided by the git client plugin, and is performing the merge.
The message from the merge is surprising, since it says that it is merging a commit from the master branch (3d19d9) into the PR head commit (06f18bc) for PR-458. It is odd that it then reports that it is "checking out the PR head commit" (06f18bc). I would have expected it to checkout the results of merging the PR head commit into the master branch (with a resulting new commit) or to checkout the results of merging the master branch into the PR head commit.