[Buildbot-devel] master.cfg file

KR Arun. Chand achand_st at beceem.com
Tue Aug 2 08:00:43 UTC 2005


This is my master.cfg file ..what should i add to this file  to trigger the build on every commit. Can anyone help me with this please.



import os.path
from buildbot.changes.freshcvs import FreshCVSSource
from buildbot.changes.freshcvs import FreshCVSSourceNewcred
from buildbot.process import step, factory
from buildbot.status import html, client
from buildbot.process.factory import s

s = factory.s
c = BuildmasterConfig = {}
c['bots'] = [("bot1name", "bot1passwd")]
c['sources'] = []

cvsroot = ":pserver:arun:python123 at beceem-chand:/usr/local/newrepo"

builders = []
# i have inculded 
#pb = ConfigurationSet([
#    (None, None, None, PBService(userpass=('foo', 'bar'), port=9999)),
#    ])
# to my freshCfg file  in the root directory of my repository
#c['sources'] =FreshCVSSource("beceem-chand",9999, "foo", "bar")
#source = s(step.CVS, cvsroot=cvsroot, cvsmodule="newproject", login="",
#           mode="copy")



f1 = factory.BuildFactory([s(step.CVS, cvsroot=cvsroot, cvsmodule="newproject", mode="update"),
                           s(step.Compile, command=["make", "all"])])

b1 = {'name': "buildbot-full", 'slavename': "bot1name", 'builddir': "full", 'factory': f1,
      'periodicBuildTime':30*60
      }

c['builders'] = [b1]

c['slavePortnum'] = 9989


c['status'] = []
c['status'] = [html.Waterfall(http_port=8010),
               client.PBListener(port=8008),
               ]

c['debugPassword'] = "debugpassword"

c['projectName'] = "hello"

c['buildbotURL'] = "http://localhost:8010/"





More information about the devel mailing list