[Buildbot-devel] Multiple git steps and dependencies with different projects in a build

Dan Kegel dank at kegel.com
Mon Jun 9 18:24:48 UTC 2014


On Mon, Jun 9, 2014 at 11:13 AM, Kay Hayen <kay.hayen at gmail.com> wrote:
> While I could write a script that uses git clone, I would like to use
> three "Git" build steps, and benefit from the caching performed by
> Buildbot, when doing "copy" mode. I understand using one such step,
> changes the build into a directory that is a checkout.
>
> How to I refer to the other ones, i.e. how to find their checkouts on
> the slave, and what to set the git dir to, to use it for commiting and
> pushing changes.

In general, you can't depend on that, since the latest checkout
might be on a different slave.
If you want to refer to the results of a previous builder, you
may have to save them somewhere in a build step at the end of that builder,
and then retrieve them in a build step at the start of the builder
that depends on them, e.g. using scp.  That's what I do.
(Well, on the Mac and Windows, I use scp; on Ubuntu, I use apt for
retrieving artifacts that have been packaged as .deb's.)
- Dan




More information about the devel mailing list