-
Notifications
You must be signed in to change notification settings - Fork 4
/
status.py
44 lines (41 loc) · 1.24 KB
/
status.py
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
def get_www():
from buildbot.plugins import util
from twisted.cred import strcred
import private
return dict(
port = "unix:/home/buildbot/buildbot.sock",
plugins = dict(
waterfall_view = True,
console_view = True,
grid_view = True,
badges = {}
),
auth = util.GitHubAuth(
private.github_client_id,
private.github_client_secret,
apiVersion = 4,
getTeamsMembership = True
),
authz = util.Authz(
allowRules = [
util.AnyControlEndpointMatcher(role = "SFML")
],
roleMatchers = [
util.RolesFromGroups()
]
),
change_hook_dialects = {'base': True, 'github' : {}},
change_hook_auth = [strcred.makeChecker("file:changehook.passwd")],
ws_ping_interval = 15
)
def get_github_status():
from buildbot.process.properties import Interpolate
from buildbot.plugins import reporters
import private
return [
reporters.GitHubStatusPush(
token = private.github_status_token,
context = Interpolate("%(prop:buildername)s"),
verbose = True
)
]