-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathbuildbot.tac
39 lines (27 loc) · 1.14 KB
/
buildbot.tac
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
import os
import sys
sys.path.insert(0, os.path.dirname(__file__))
from flocker_bb.monkeypatch import apply_patches
apply_patches()
from flocker_bb.eliot import eliot_to_twisted_logging
eliot_to_twisted_logging()
from flocker_bb import privateData
from flocker_bb.zulip import createZulip, ZulipLogger
from twisted.internet import reactor
if 'zulip' in privateData:
ZULIP_BOT = privateData['zulip']['user']
ZULIP_KEY = privateData['zulip']['password']
zulip = createZulip(reactor, ZULIP_BOT, ZULIP_KEY)
ZulipLogger(zulip=zulip, stream="BuildBot - Operation").start()
from twisted.application import service
from buildbot.master import BuildMaster
# This is currently duplicated in flocker.bb.builders.maint
basedir = r'/srv/buildmaster/data'
# note: this line is matched against to check that this is a buildmaster
# directory; do not edit it.
application = service.Application('buildmaster')
from twisted.python.util import sibpath
configfile = sibpath(__file__, 'config.py')
from flocker_bb.upgrade import UpgradeService
master = BuildMaster(basedir, configfile)
UpgradeService(basedir, configfile, master).setServiceParent(application)