Previous: Builder Configuration, Up: Builders
nextBuild can be use to prioritize
build requests within a builder. Note that this is orthogonal to
see Prioritizing Builders, which controls the order in which builders are
called on to start their builds.
def nextBuild(bldr, requests): for r in requests: if r.source.branch == 'release': return r return requests c['builders'] = [ BuilderConfig(name='test', factory=f, nextBuild=nextBuild, slavenames=['slave1', 'slave2', 'slave3', 'slave4']), ]