2011-11-12 18:20:07 +00:00
|
|
|
"""
|
|
|
|
This module returns the given status handlers to enable for the
|
|
|
|
buildbot master.
|
|
|
|
"""
|
|
|
|
|
|
|
|
from buildbot.status import html
|
|
|
|
from buildbot.status.web.authz import Authz
|
|
|
|
|
|
|
|
def get_status(options):
|
|
|
|
"""
|
|
|
|
Returns a list of status targets for the build master.
|
|
|
|
"""
|
|
|
|
authz = Authz(
|
|
|
|
gracefulShutdown = True,
|
|
|
|
forceBuild = True,
|
|
|
|
forceAllBuilds = True,
|
|
|
|
pingBuilder = True,
|
|
|
|
stopBuild = True,
|
|
|
|
stopAllBuilds = True,
|
|
|
|
cancelPendingBuild = True,
|
|
|
|
stopChange = True,
|
|
|
|
cleanShutdown= True
|
|
|
|
)
|
|
|
|
|
|
|
|
web_status = html.WebStatus(
|
|
|
|
http_port = options.web_port,
|
2011-11-12 23:52:27 +00:00
|
|
|
authz = Authz(),
|
2011-11-12 21:14:16 +00:00
|
|
|
order_console_by_time = True,
|
|
|
|
change_hook_dialects=dict(github=True)
|
2011-11-12 18:20:07 +00:00
|
|
|
)
|
|
|
|
|
|
|
|
return [web_status]
|