c['slavePortnum'] = XXX
# Branches and distros to build
-osrf_branches = ('master', 'rel_1_6', 'rel_2_0')
-osrf_distros = [('ubuntu-10.04-x86_64', 'opensrf-slave')]
-eg_branches = ('master', 'rel_1_6_1', 'rel_2_0', 'rel_2_1')
-eg_distros = [
+OSRF_BRANCHES = ('master', 'rel_1_6', 'rel_2_0')
+OSRF_DISTROS = [('ubuntu-10.04-x86_64', 'opensrf-slave')]
+EG_BRANCHES = ('master', 'rel_1_6_1', 'rel_2_0', 'rel_2_1')
+EG_DISTROS = [
('debian-6.00-x86_64', 'eg-slave'), # UPEI
('ubuntu-8.04-x86', 'eg-u804'), # GPLS
('ubuntu-10.04-x86', 'eg-u1004') # GPLS
# about source code changes
from buildbot.changes import gitpoller
-c['change_source'] = (
- gitpoller.GitPoller(
+c['change_source'] = []
+for osrf_branch in OSRF_BRANCHES:
+ c['change_source'].append(gitpoller.GitPoller(
project='OpenSRF',
repourl=osrf_git,
- workdir='/tmp/buildbot_osrf_work'
- ),
- gitpoller.GitPoller(
+ workdir='/tmp/buildbot_osrf_' + osrf_branch,
+ branch=osrf_branch
+ ))
+
+for eg_branch in EG_BRANCHES:
+ c['change_source'].append(gitpoller.GitPoller(
project='Evergreen',
repourl=eg_git,
- workdir='/tmp/buildbot_eg_work'
- )
-)
+ workdir='/tmp/buildbot_eg_' + eg_branch,
+ branch=eg_branch
+ ))
####### FILTERS
from buildbot.schedulers.filter import ChangeFilter
c['builders'] = []
-for branch in osrf_branches:
- for distro, slave in osrf_distros:
+for branch in OSRF_BRANCHES:
+ for distro, slave in OSRF_DISTROS:
build = "osrf-%s-%s" % (branch, distro)
c['builders'].append(BuilderConfig(name=build, slavenames=slave, factory=osrf_factory))
-for branch in eg_branches:
- for distro, slave in eg_distros:
+for branch in EG_BRANCHES:
+ for distro, slave in EG_DISTROS:
build = "evergreen-%s-%s" % (branch, distro)
c['builders'].append(BuilderConfig(name=build, slavenames=slave, factory=eg_factory))