Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Jenkins - Impact of shallow clone

I have setup Jenkins with Git SCM enabled.

Since Git server is present in another country with slow intranet network connection, Git sync is too slow for me. it fails many times.

I read some suggestions online saying 'enable shallow clone'.

But my worry is will i miss something if i do shallow clone. Something like 'change history'.

it is a Xamarin Android C# solution, wondering will it be safe to do shallow clone.

Can shallow clone resolve my slow network issue.? How it impacts as a jenkins job?

like image 481
Mani Vannan Avatar asked May 23 '18 02:05

Mani Vannan


1 Answers

The only impact is for your job to have a limited view of the cloned/fetched history (since it is a shallow one, with limited depth)

But you will not miss any *new change in history: the JENKINS Git Plugin would still detect new commits on the remote repo side. (and, if the workspace is not cleaned at each new job, would perform a regular fetch)

like image 74
VonC Avatar answered Sep 28 '22 15:09

VonC