Buildbot: automatically build for all branches, not just master
This commit is contained in:
19
master.cfg
19
master.cfg
@@ -80,13 +80,6 @@ c['protocols'] = {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
################################################################################
|
|
||||||
# CHANGE SOURCES
|
|
||||||
|
|
||||||
c['change_source'] = GitPoller(repourl='git://git.blender.org/blender.git',
|
|
||||||
pollinterval=120,
|
|
||||||
project='blender')
|
|
||||||
|
|
||||||
################################################################################
|
################################################################################
|
||||||
# CODEBASES
|
# CODEBASES
|
||||||
#
|
#
|
||||||
@@ -197,11 +190,15 @@ def schedule_change_build(name, branch):
|
|||||||
# Note that any particular build will only take place on one worker.
|
# Note that any particular build will only take place on one worker.
|
||||||
|
|
||||||
c['builders'] = []
|
c['builders'] = []
|
||||||
|
builders_all_branches = set()
|
||||||
|
|
||||||
|
|
||||||
# Add builder utility.
|
# Add builder utility.
|
||||||
|
|
||||||
def add_builder(c, name, platforms, factory, branch='', hour=3, minute=0):
|
def add_builder(c, name, platforms, factory, branch='', hour=3, minute=0):
|
||||||
|
if branch != '':
|
||||||
|
builders_all_branches.add(branch)
|
||||||
|
|
||||||
for platform in platforms:
|
for platform in platforms:
|
||||||
workernames = []
|
workernames = []
|
||||||
builder_name = f'{name}_{platform}'
|
builder_name = f'{name}_{platform}'
|
||||||
@@ -342,6 +339,14 @@ add_builder(c,
|
|||||||
branch='',
|
branch='',
|
||||||
hour=1)
|
hour=1)
|
||||||
|
|
||||||
|
################################################################################
|
||||||
|
# CHANGE SOURCES
|
||||||
|
|
||||||
|
c['change_source'] = GitPoller(repourl='git://git.blender.org/blender.git',
|
||||||
|
pollinterval=120,
|
||||||
|
project='blender',
|
||||||
|
branches=list(builders_all_branches))
|
||||||
|
|
||||||
################################################################################
|
################################################################################
|
||||||
# HORIZONS
|
# HORIZONS
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user