Getting Jgit exception in a Job that uses native Git

38 views
Skip to first unread message

Dirk Heinrichs

unread,
Mar 23, 2018, 7:06:48 AM3/23/18
to jenkins...@googlegroups.com

Hi,

 

I'm currently seeing a strange Problem where I get a Jgit exception like:

 

        FATAL: Walk failure.
        org.eclipse.jgit.errors.MissingObjectException: Missing commit <id>
 
in a job that's configured to use native Git. In fact, I'm also getting the usual native Git output above the exception. But why is it using Jgit at all?

 

Any hints?

 

Thanks...

 

                Dirk

 

Dirk Heinrichs

Senior Systems Engineer, Delivery Pipeline

OpenText ™ Discovery | Recommind

Email: dhei...@opentext.com

Website: www.recommind.de

Recommind GmbH, Von-Liebig-Straße 1, 53359 Rheinbach

Vertretungsberechtigte Geschäftsführer John Marshall Doolittle, Gordon Davies, Roger Illing, Registergericht Amtsgericht Bonn, Registernummer HRB 10646

This e-mail may contain confidential and/or privileged information. If you are not the intended recipient (or have received this e-mail in error) please notify the sender immediately and destroy this e-mail. Any unauthorized copying, disclosure or distribution of the material in this e-mail is strictly forbidden

Diese E-Mail enthält vertrauliche und/oder rechtlich geschützte Informationen. Wenn Sie nicht der richtige Adressat sind oder diese E-Mail irrtümlich erhalten haben, informieren Sie bitte sofort den Absender und vernichten Sie diese Mail. Das unerlaubte Kopieren sowie die unbefugte Weitergabe dieser Mail sind nicht gestattet.

 

Dirk Heinrichs

unread,
Mar 23, 2018, 7:21:32 AM3/23/18
to jenkins...@googlegroups.com
From: jenkins...@googlegroups.com [mailto:jenkins...@googlegroups.com] On Behalf Of Dirk Heinrichs

> I'm currently seeing a strange problem where I get a Jgit exception like:
>
>         FATAL: Walk failure.
>         org.eclipse.jgit.errors.MissingObjectException: Missing commit <id>
>
> in a job that's configured to use native Git. In fact, I'm also getting the usual native Git output above the exception.
> But why is it using Jgit at all?

Could resolve it by temp. adding a "Wipe out repository & force clone". However, the question remains: Why is it running Jgit at all?

Bye...

Dirk

Brian Ray

unread,
May 10, 2018, 8:20:52 PM5/10/18
to Jenkins Users
Navigate to Manage Jenkins > Global Tool Configuration > Git > Git Installations.

If the only installation configured there is JGit or JGit with Apache HTTP client, that is the answer. The Git installation will probably be what you are looking for.

Dirk Heinrichs

unread,
May 14, 2018, 3:18:00 AM5/14/18
to jenkins...@googlegroups.com

Hi,

 

how could I have selected a native Git installation in the job config if it wasn't in the global config?

 

Bye...

 

                Dirk

 

PS: Sorry for top posting, I'm currently forced to use Outlook.

--
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/d10250e8-4ee2-410f-9d51-5b21c92fadf4%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Brian Ray

unread,
May 16, 2018, 5:52:43 PM5/16/18
to Jenkins Users
No problem on top posting. It seems to be the default behavior of the Groups UI here, so I am guilty of it too.

I misunderstood or otherwise skipped right over the "native" modifier in your original post. I wonder if there is some path through the plugin code that utilizes parts of JGit even when the job specifies checkout via the regular Git client. Very strange.
Reply all
Reply to author
Forward
0 new messages