Ticket #625: master.cfg

File master.cfg, 1.7 KB (added by hooaarzt, 3 years ago)

master.cfg file of the buildmaster

Line 
1p4port = "10.53.40.108:1666"
2p4user = "perforce"
3
4c = BuildmasterConfig = {}
5
6####### BUILDSLAVES
7from buildbot.buildslave import BuildSlave
8c['slaves'] = [
9        BuildSlave("bs.Ubuntu.8.04.i386", "test")
10        ]
11
12c['slavePortnum'] = 10000
13
14####### CHANGESOURCES
15from buildbot.changes import p4poller
16c['change_source'] = p4poller.P4Source(p4port=p4port, p4user=p4user, p4base="//test/develop/main/", split_file=lambda branchfile: branchfile.split('/',1), pollinterval=10, )
17
18####### SCHEDULERS
19from buildbot.scheduler import Scheduler
20c['schedulers'] = []
21
22sched_test_full = Scheduler(name="test.ubuntu.full",
23                                 branch=None,
24                                 treeStableTimer=60,
25                                 builderNames=["test.ubuntu.full"])
26c['schedulers'].append(sched_test_full)
27
28####### BUILDERS
29from buildbot.process import factory
30from buildbot.steps.source import P4
31from buildbot.steps.shell import Compile
32from buildbot.steps.shell import ShellCommand
33
34f1 = factory.BuildFactory()
35
36f1.addStep(P4(mode="update", p4base="//test/develop/main/", p4port=p4port, p4user=p4user))
37
38f1.addStep(ShellCommand(command="autoconf"))
39f1.addStep(ShellCommand(command="./configure"))
40f1.addStep(Compile(command="make"))
41
42b1 = {'name': "test.ubuntu.full",
43      'slavename': "bs.Ubuntu.8.04.i386",
44      'builddir': "test.ubuntu.full",
45      'factory': f1,
46      'env': {'P4CHARSET': 'utf8'}
47      }
48c['builders'] = [b1]
49
50
51####### STATUS TARGETS
52c['status'] = []
53
54from buildbot.status import html
55c['status'].append(html.WebStatus(20000,allowForce=True))
56
57c['projectName'] = "test"
58c['projectURL'] = "http://localhost:20000"
59c['buildbotURL'] = "http://localhost:20000/"