[users at bb.net] Using Force build properties in the nextWorker/nextSlave callable
Pierre Tardy
tardyp at gmail.com
Thu Mar 23 12:20:15 UTC 2017
On Thu, Mar 23, 2017 at 11:37 AM Sommer, Erik <Erik.Sommer at de.neusoft.com>
wrote:
> We have a large worker/slave setup. We want to assign to some specific
> builds a specific worker. The idea was to put in the information about the
> preferred worker via a Force Build property. Is it possible to access job
> properties in the nextSlave/nextWorker callable? If so how?
>
Hi,
NextWorker callback has access to the BuildRequest object, which has itself
has a properties attribute, which is derived from the force build
properties.
You can use this in order to select which worker or worker group should do
the job.
Regards
Pierre
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.buildbot.net/pipermail/users/attachments/20170323/108b547e/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image30b08e.PNG
Type: image/png
Size: 6222 bytes
Desc: not available
URL: <http://lists.buildbot.net/pipermail/users/attachments/20170323/108b547e/attachment.png>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: imagec57694.PNG
Type: image/png
Size: 4403 bytes
Desc: not available
URL: <http://lists.buildbot.net/pipermail/users/attachments/20170323/108b547e/attachment-0001.png>
More information about the users
mailing list