diff options
author | Marcello Stanisci <marcello.stanisci@inria.fr> | 2016-12-22 14:27:09 +0100 |
---|---|---|
committer | Marcello Stanisci <marcello.stanisci@inria.fr> | 2016-12-22 14:27:09 +0100 |
commit | 777529ac80e09423e645522b6b74003850e00599 (patch) | |
tree | 1841db3543723971ed3d9796835ce65b9e2f8fa0 | |
parent | 6db6649c39a2820fd448bdd743ba848e8319b5d2 (diff) | |
download | deployment-777529ac80e09423e645522b6b74003850e00599.tar.gz deployment-777529ac80e09423e645522b6b74003850e00599.tar.bz2 deployment-777529ac80e09423e645522b6b74003850e00599.zip |
Allowing the logged user to trigger the force build
in Buildbot. In the latest Buildbot, this feature had
a new way to be enabled.
-rw-r--r-- | buildbot/master-lonelyslave.cfg | 18 |
1 files changed, 15 insertions, 3 deletions
diff --git a/buildbot/master-lonelyslave.cfg b/buildbot/master-lonelyslave.cfg index f15e33d..47fe3b4 100644 --- a/buildbot/master-lonelyslave.cfg +++ b/buildbot/master-lonelyslave.cfg @@ -152,9 +152,21 @@ c['status'] = [] from buildbot.plugins import util c['www'] = dict(port=8010, - plugins=dict(waterfall_view={}, - console_view={}), - auth=util.UserPasswordAuth({"marcello": "taler"})) + plugins=dict(waterfall_view={}, console_view={})) + +authz = util.Authz( + allowRules=[ + util.StopBuildEndpointMatcher(role="admins"), + util.ForceBuildEndpointMatcher(role="admins"), + util.RebuildBuildEndpointMatcher(role="admins") + ], + roleMatchers=[ + util.RolesFromUsername(roles=["admins"], usernames=["marcello"]) + ] +) + +c['www']['auth'] = util.UserPasswordAuth({"marcello": "taler"})) +c['www']['authz'] = authz ####### PROJECT IDENTITY c['title'] = "Taler" |