Multibranch Pipeline: Checkout fatal bad object

69 views
Skip to first unread message

Sverre Moe

unread,
Oct 30, 2019, 6:56:22 AM10/30/19
to Jenkins Users
The first build of any Branch or Tag the checkout step outputs one line with fatal bad object, for a different git commit hash than the one checked out.

Anyone know what the reason for this is?

 > git fetch --tags --progress --depth=25 -- ssh://g...@git.company.com/apps/app-project.git +refs/heads/*:refs/remotes/origin/*
Checking out Revision a77b7ac906a131238f5d4586962795ba09a451ad (v1.1.13)
Commit message: "Git Commit Message"
First time build. Skipping changelog.
fatal: bad object d7989b6aa4e91962f5aeb807ad26e52432034b64
 > git config core.sparsecheckout # timeout=10
 > git checkout -f a77b7ac906a131238f5d4586962795ba09a451ad

Sverre Moe

unread,
Nov 13, 2019, 10:28:17 AM11/13/19
to Jenkins Users
It seems the fatal bad object comes from the checkout of the Shared Library at the beginning of the pipeline.

Loading library pipeline@master
 > git fetch --no-tags --progress -- ssh://g...@git.company.com/tools/jenkins-pipeline-scripts.git +refs/heads/*:refs/remotes/origin/*
Checking out Revision d7989b6aa4e91962f5aeb807ad26e52432034b64 (master)
 > git config core.sparsecheckout # timeout=10
 > git checkout -f d7989b6aa4e91962f5aeb807ad26e52432034b64

Cardamon

unread,
Apr 23, 2020, 10:37:09 AM4/23/20
to Jenkins Users
Hi
have you eventually figured it out?
experiencing the same behavior
Tnx 

Mark Waite

unread,
Apr 23, 2020, 10:40:31 AM4/23/20
to Jenkins Users
On Thu, Apr 23, 2020 at 8:37 AM Cardamon <raanan...@gmail.com> wrote:
Hi
have you eventually figured it out?
experiencing the same behavior
Tnx 

Command line git generates that message when a sparse checkout is selected.  The Jenkins git plugin ignores the message and continues.

If you'd rather not have that message in the console output, you may need to stop using sparse checkout.

Mark Waite
 
--
You received this message because you are subscribed to the Google Groups "Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-use...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/bc2a07c3-fdec-46b9-a557-16e1e3826f2b%40googlegroups.com.
Reply all
Reply to author
Forward
0 new messages