Shared git repository checkouts in the Agent

#1

We added support for sharing a single git repository across multiple agents on a host in buildkite-agent v3.10.0.

You can test it out with:

buildkite-agent start \
  --experiment git-mirrors \
  --git-mirrors-path /tmp/buildkite-git-mirrors

Currently it is just for the main repository, so submodules don’t use a reference repository, nor do plugins.

Keen to hear how folks are using it!

How do I skip the "Preparing Working Directory" step?
#2

We’re currently having issues with https://github.com/lerna/lerna with git-mirrors when using it to reference HEAD~1. It throws bad revision ‘HEAD~1’.

Would it also be possible to set git clone mirror flags similar to how git clone flags can be set with BUILDKITE_GIT_CLONE_FLAGS?