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?
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)
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With