Hello everyone,
I’m using the Jenkins Git Plugin (v5.7.0) to fetch repositories from Bitbucket.
I want to reduce network traffic and clone time, but shallow clone is not considered a best practice for our pipelines (due to history-dependent steps like changelogs, versioning, and some plugins).
I also tried setting depth to 10–20, but in practice it does not significantly reduce the data transfer for our repositories.
My question:
What are the recommended or proven approaches to reduce Git data transfer in Jenkins without relying on shallow clone?
Things I’ve considered / tried:
-
Shallow clone with small depth (not sufficient, not preferred)
-
Standard Git plugin checkout (full history – too heavy)
Any real-world experience or best-practice recommendations would be greatly appreciated.Thanks in advance.