From: Jo-Philipp Wich Date: Mon, 6 Feb 2017 12:41:47 +0000 (+0100) Subject: phase1: prioritize tagged build requests X-Git-Tag: v1~178 X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=5dac682fd48da487710d4eb1aa51ffc969fde3a3;p=buildbot.git phase1: prioritize tagged build requests Signed-off-by: Jo-Philipp Wich --- diff --git a/phase1/master.cfg b/phase1/master.cfg index a8d6737..735d2d4 100644 --- a/phase1/master.cfg +++ b/phase1/master.cfg @@ -246,6 +246,12 @@ def GetCwd(props): else: return "/" +def GetNextBuild(builder, requests): + for r in requests: + if r.properties and r.properties.hasProperty("tag"): + return r + return requests[0] + def MakeEnv(overrides=None): env = { 'CC': WithProperties("%(cc)s", cc=GetCC), @@ -756,7 +762,7 @@ for target in targets: from buildbot.config import BuilderConfig - c['builders'].append(BuilderConfig(name=target, slavenames=slaveNames, factory=factory)) + c['builders'].append(BuilderConfig(name=target, slavenames=slaveNames, factory=factory, nextBuild=getNextBuild)) ####### STATUS TARGETS