<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
</head>
<body text="#000000" bgcolor="#FFFFFF">
<p>Hi Chris,</p>
<p>See canStartBuild function:</p>
<p><a class="moz-txt-link-freetext" href="http://docs.buildbot.net/1.4.0/manual/customization.html#canstartbuild-functions">http://docs.buildbot.net/1.4.0/manual/customization.html#canstartbuild-functions</a><br>
</p>
Regardss,<br>
Aleksey<br>
<br>
<div class="moz-cite-prefix">On 20.09.2018 1:08, Chris Spencer
wrote:<br>
</div>
<blockquote type="cite"
cite="mid:CANe40g+m3XfN9NC1ZrJWF-B+6svoL=GEpFX2FCMyr9Eq2KWhCQ@mail.gmail.com">
<meta http-equiv="content-type" content="text/html; charset=utf-8">
<div dir="ltr">
<div dir="ltr">
<div dir="ltr">
<div>How do you specify a worker to be assigned a build for
a specific branch?</div>
<div><br>
</div>
<div>I'd like to automate deployments to my staging server,
so whenever someone commits to my "staging" branch, and
all tests pass, I'd like to append a build step that
deploys these changes. To ensure that multiple workers
don't try to deploy at the same time, I want only my first
worker to be given the task of building changes for the
staging branch.</div>
<div><br>
</div>
<div>I can't find anything in the docs that explicitly
mentions how I might do this.</div>
<div><br>
</div>
<div>I thought I might be able to use the "nextBuild"
parameter on the BuilderConfig in my master.cfg, and give
it a function to skip the build if it's for staging, but
not on the right worker, but it looks that's only run on
the master and not all the workers, so that won't work.<br>
</div>
</div>
</div>
</div>
<br>
<fieldset class="mimeAttachmentHeader"></fieldset>
<br>
<pre wrap="">_______________________________________________
users mailing list
<a class="moz-txt-link-abbreviated" href="mailto:users@buildbot.net">users@buildbot.net</a>
<a class="moz-txt-link-freetext" href="https://lists.buildbot.net/mailman/listinfo/users">https://lists.buildbot.net/mailman/listinfo/users</a></pre>
</blockquote>
<br>
</body>
</html>