Jenkins: The remote end hung up unexpectedly fatal: early EOF fatal: index-pack failed

Again the same git error: The remote end hung up unexpectedly fatal: early EOF fatal: index-pack failed.

This time – during the execution of Jenkins pipeline:

We need to configure Jenkins pipeline to do git shallow fetch.

In Jenkins pipeline, under Source Code management -> Git -> Additional Behaviours click Add and choose

In the Advanced clone behaviours window choose Shallow Clone checkbox and save the pipeline:

Jenkins-git-shallow-clone

The error should gone and the piplene will complete smoothly!

Good luck!

 

 

Want me to do this for you? Drop me a line: itgalaxyzzz {at} gmail [dot] com