This repository has been archived by the owner on Feb 2, 2019. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 15
/
master-main.cfg
72 lines (54 loc) · 1.89 KB
/
master-main.cfg
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
# -*- python -*-
# ex: set syntax=python:
# Shorthand
c = BuildmasterConfig = {}
import config
from config import *
####### BUILDSLAVES
import BuildSlaves
reload(BuildSlaves)
from BuildSlaves import SlavePasswords
from buildbot.buildslave import BuildSlave
c['slaves'] = []
for platform, names in SLAVES.items():
for name in names:
c['slaves'].append(BuildSlave(name, SlavePasswords[platform], max_builds=1))
# Now setup the l10n slaves. L10N_SLAVES is defined in
# master.cfg before we get exec'ed
for branch in BRANCHES.keys():
BRANCHES[branch]['l10n_slaves'] = L10N_SLAVES
c['change_source'] = []
c['schedulers'] = []
c['builders'] = []
c['status'] = []
from buildbot.changes.pb import PBChangeSource
c['change_source'].append(PBChangeSource())
####### PROJECT IDENTITY
# the 'projectName' string will be used to describe the project that this
# buildbot is working on. For example, it is used as the title of the
# waterfall HTML page. The 'projectURL' string will be used to provide a link
# from buildbot HTML pages to your project's home page.
c['projectName'] = "SeaMonkey 2"
c['projectURL'] = "http://wiki.mozilla.org/SeaMonkey:hg-based_build"
# Cap the log size at 50 MB
c['logMaxSize'] = 50 * 1024 * 1024
# Keep 100 changes
c['changeHorizon'] = 600
######## PULSE and Command Queue
from mozilla_buildtools.queuedir import QueueDir
commandsQueue = QueueDir('commands', '%s/commands' % "/dev/shm/queue")
import passwords
reload(passwords)
if hasattr(passwords, 'PULSE_PASSWORD'):
pulseQueue = QueueDir('pulse', '%s/pulse' % "/dev/shm/queue")
# Send pulse messages
import re
import buildbotcustom.status.pulse
reload(buildbotcustom.status.pulse)
from buildbotcustom.status.pulse import PulseStatus
c['status'].append(PulseStatus(
pulseQueue,
ignoreBuilders=[re.compile('fuzzer-.*')],
send_logs=False,
))
assert c is BuildmasterConfig