On Thu, Apr 7, 2016 at 12:46 PM, Nigel Magnay <
nigel....@gmail.com> wrote:
> I was thinking of something relatively simple (rather than playing with
> bundles)
Well, bundles actually *are* pretty simple. Not terribly efficient, if
your master-to-slave channel is slow, but the code would be simple. At
least the Mercurial implementation fits on a page. I do not have
reason to believe Git would be much different, though I am no expert
on the details.
> I like
> the transparency too of not having to change Jenkinsfiles to make it work.
Well any proper change would be transparent to the user, it is just a
question of the right implementation.
> Exposing the (cached) git repository is probably little more than exposing
> the directory for HTTP at a push.
Well, you *could* use the `git-server` plugin to serve cache repos
over HTTP(S) or SSH to agents, and that would probably be easy enough
to prototype. But for production usage (i.e., convincing Mark to merge
a PR), you get into a lot of complications over security, reverse
proxies, network partitions, etc.
> I might take a look at the Git SCM source and see if I can hack something
> up.
Note that while the current cache code lives in `GitSCMSource`, to be
repurposed this way it would need to be moved into `GitSCM` proper,
and would be equally applicable to non-multibranch calls.