mirror of
https://github.com/wxWidgets/Phoenix.git
synced 2026-01-04 19:10:09 +01:00
Require authentication to do a force build
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxPython/Phoenix/trunk@74453 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -23,6 +23,7 @@ c = BuildmasterConfig = {}
|
||||
# Passwords are stored separately and not maintained in the souce repository
|
||||
# for security's sake
|
||||
import bbpasswd
|
||||
reload(bbpasswd)
|
||||
|
||||
from buildbot.buildslave import BuildSlave
|
||||
c['slaves'] = [ #BuildSlave("osx_cocoa-py27", bbpasswd.PASSWD1,
|
||||
@@ -296,14 +297,16 @@ c['builders'] = [
|
||||
|
||||
c['status'] = []
|
||||
|
||||
# Define authentication and turn on some protected options
|
||||
from buildbot.status import html
|
||||
from buildbot.status.web import authz
|
||||
authz_cfg=authz.Authz(
|
||||
# change any of these to True to enable; see the manual for more
|
||||
# options
|
||||
from buildbot.status.web.auth import BasicAuth
|
||||
|
||||
authz_cfg = authz.Authz(
|
||||
auth = BasicAuth(bbpasswd.USERS),
|
||||
forceBuild = 'auth',
|
||||
forceAllBuilds = 'auth',
|
||||
gracefulShutdown = False,
|
||||
forceBuild = True, # use this to test your slave once it is set up
|
||||
forceAllBuilds = True,
|
||||
pingBuilder = False,
|
||||
stopBuild = False,
|
||||
stopAllBuilds = False,
|
||||
@@ -311,6 +314,7 @@ authz_cfg=authz.Authz(
|
||||
)
|
||||
c['status'].append(html.WebStatus(http_port=8010, authz=authz_cfg))
|
||||
|
||||
|
||||
# email notification
|
||||
|
||||
from buildbot.status.mail import MailNotifier
|
||||
|
||||
Reference in New Issue
Block a user