We have an automated build system configured using Jenkins, integrate with Gerrit. One of the bottlenecks today is that it takes ~3.5 minutes for Jenkins to complete a “git clone” for each build, due to repository size. The same check-out using “git archive” takes approx 12 seconds.
Can the gerrit plugin for Jenkins be configured to use “git archive”? This will significantly reduce our build time.
Although it doesn’t appear to be possible using an unmodified version of the Git plugin, I did accomplish this in two steps:
Here is a sample for step 2).