Support git strategy with Kubernetes executor
git_strategy CI/CD setting currently doesn't work with the Kubernetes executor. This was discussed internally(internal-only link) and we determined that it's probably possible with a shared volume.
- The Kubernetes executor does not store the old builds/repo for reuse with the next build in the
- This leads into having to do a
git clonefor every job instead of doing a
git fetchafter the first build, which can create unnecessary load when you have large repositories.
I'm proposing that we should support
git_strategy with the Kubernetes executor.
Proposal (revised Jan 10, 2020)
Create a volume for the build directory which is mounted every time, just like it's done in the Docker executor. Related discussion here.
With the volumes to the build directory now available the
git_strategyCI/CD setting should work automatically.