-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathmaster.cfg
executable file
·131 lines (90 loc) · 3.95 KB
/
master.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
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
# -*- python -*-
# ex: set filetype=python:
from buildbot.plugins import *
# This is a sample buildmaster config file. It must be installed as
# 'master.cfg' in your buildmaster's base directory.
# This is the dictionary that the buildmaster pays attention to. We also use
# a shorter alias to save typing.
c = BuildmasterConfig = {}
# OPT OUT BUILDBOT USAGE STATISTICS
c['buildbotNetUsageData'] = None
####### WORKERS
# The 'workers' list defines the set of recognized workers. Each element is
# a Worker object, specifying a unique worker name and password. The same
# worker name and password must be configured on the worker.
c['workers'] = [worker.Worker("linux-worker", "CHANGE_ME_WITH_THE_PROPER_ID")]
# 'protocols' contains information about protocols which master will use for
# communicating with workers. You must define at least 'port' option that workers
# could connect to your master with this protocol.
# 'port' must match the value configured into the workers (with their
# --master option)
c['protocols'] = {'pb': {'port': 9989}}
####### CHANGESOURCES
# the 'change_source' setting tells the buildmaster how it should find out
# about source code changes. Here we point to the buildbot version of a python hello-world project.
c['change_source'] = []
####### SCHEDULERS
# Configure the Schedulers, which decide how to react to incoming changes. In this
# case, just kick off a 'runtests' build
c['schedulers'] = []
c['schedulers'].append(schedulers.AnyBranchScheduler(
name="check_testbench",
builderNames=["testbench-builder"]))
####### BUILDERS
# The 'builders' list defines the Builders, which tell Buildbot how to perform a build:
# what steps, and which workers can execute them. Note that any particular build will
# only take place on one worker.
testbench_first = util.BuildFactory()
from easeml_cicd.buildbot.step import launch_easeml_cicd
testbench_first.addStep(
launch_easeml_cicd.EaseMLStep()
)
c['builders'] = []
# Add the BuildFactory configuration to the master
c['builders'].append(
util.BuilderConfig(name="testbench-builder",
workernames=["linux-worker"],
factory=testbench_first))
####### BUILDBOT SERVICES
# 'services' is a list of BuildbotService items like reporter targets. The
# status of each build will be pushed to these targets. buildbot/reporters/*.py
# has a variety to choose from, like IRC bots.
c['services'] = []
####### PROJECT IDENTITY
# the 'title' string will appear at the top of this buildbot installation's
# home pages (linked to the 'titleURL').
c['title'] = "EaseML CICD"
c['titleURL'] = "http://ease.ml/cicd"
#c['manhole'] = util.TelnetManhole(1234, "leo", "leo")
# the 'buildbotURL' string should point to the location where the buildbot's
# internal web server is visible. This typically uses the port number set in
# the 'www' entry below, but with an externally-visible host name which the
# buildbot cannot figure out without some help.
c['buildbotURL'] = "EXAMPLE:http://ec2-18-219-109-220.us-east-2.compute.amazonaws.com:8010/"
# minimalistic config to activate new web UI
c['www'] = dict(port=8010,
plugins=dict(waterfall_view={}, console_view={}, grid_view={}))
# user configurations
c['www']['authz'] = util.Authz(
allowRules = [
util.AnyEndpointMatcher(role="admins")
],
roleMatchers = [
util.RolesFromUsername(roles=['admins'], usernames=['leaguilar','cezhang'])
]
)
c['www']['auth'] = util.UserPasswordAuth([('leonel','MYSTRONGPASSOWORD'),('cezhang','MYSTRONGPASSOWORD')])
####### DB URL
c['db'] = {
# This specifies what database buildbot uses to store its state. You can leave
# this at its default for all but the largest installations.
'db_url' : "sqlite:///state.sqlite",
}
from easeml_cicd.buildbot.git.CheckSuite import CheckSuiteHandler
## GITHUB
c['www']['change_hook_dialects'] = {
'github': {
'secret': '36fffbe5556ce2ce070867cbbb5cc61f',
'class' : CheckSuiteHandler
}
}