[Buildbot-devel] run a build on multiple host

Pierre Tardy tardyp at gmail.com
Wed Feb 4 10:30:25 UTC 2015


Le Wed Feb 04 2015 at 9:36:15 AM, 154193912 at qq.com <154193912 at qq.com> a
écrit :

> Guys,
> Is there an elegant way to run a 'Build' on multiple slaves?
>
Hi 154193912,


>
> I am trying to configure Buildbot as a deploy framework for our java web
> apps.
> I tried to deploy a package with one 'Build'
> from another 'Compile & Package Build',
> [...]
>


> I already came up with a silly solution, when the '
> Compile & Package Build' finishes,
>
> it triggers a 'Tiggerable Scheduler', which then triggers a set of 'Tiggerable Scheduler's,
> it sounds like a function call to a list of functions.
>
Its not that silly. Its actually the way it's meant to be.

The only part that you missed is that you should trigger the same builder,
but with a different property. You can then use canStartBuild (
http://docs.buildbot.net/0.8.10/manual/cfg-builders.html?highlight=canStartBuild#builder-configuration),
in order to select which slave will take the build.

Now, how can you trigger the same builder with different property in one
Trigger step.
If you are on eight, then the only solution is to create a lot of
Triggereable schedulers with different set_properties options

If you are one of the happy early nine adopters, then you can use the new
Trigger step customization point:
http://docs.buildbot.net/latest/manual/cfg-buildsteps.html#buildbot.steps.source.getSchedulersAndProperties

HTH,
Pierre
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://buildbot.net/pipermail/devel/attachments/20150204/315fc8b4/attachment.html>


More information about the devel mailing list