Mercurial > hg > autobot
view autobot/template/master/master.cfg @ 72:4e5fe6883fd9
the factory variable is no longer needed or desired
author | Jeff Hammel <jhammel@mozilla.com> |
---|---|
date | Tue, 11 Jan 2011 14:03:01 -0800 |
parents | cbcb96142ed6 |
children | d94fbaac7c2c |
line wrap: on
line source
# -*- python -*- # ex: set syntax=python: c = BuildmasterConfig = {} ####### BUILDSLAVES from buildbot.buildslave import BuildSlave c['slaves'] = [BuildSlave("{{slave}}", "{{passwd}}")] c['slavePortnum'] = {{slaveport}} ####### CHANGESOURCES from buildbot.changes.pb import PBChangeSource c['change_source'] = PBChangeSource() ####### SCHEDULERS from buildbot.scheduler import Scheduler c['schedulers'] = [] c['schedulers'].append(Scheduler(name="all", branch=None, treeStableTimer=1, builderNames=["buildbot-full"])) ####### BUILDERS # define builder factories from autobot.projects import factories as factory_dict builders = [] for factory in {{factories}}: f = factory_dict[factory]() # define builder b = {'name': "buildbot-" + factory, 'slavename': "{{slave}}", 'builddir': "full", 'factory': f, } builders.append(b) c['builders'] = builders ####### STATUS TARGETS c['status'] = [] from buildbot.status import html from buildbot.status.web.authz import Authz authz = Authz(forceBuild=True, stopBuild=True) c['status'].append(html.WebStatus(http_port={{htmlport}}, authz=authz)) ####### PROJECT IDENTITY c['projectName'] = "Buildbot" c['projectURL'] = "http://buildbot.sourceforge.net/" c['buildbotURL'] = "http://localhost:{{htmlport}}/"