Changeset 243854 in webkit
- Timestamp:
- Apr 3, 2019 8:57:11 PM (5 years ago)
- Location:
- trunk/Tools
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Tools/BuildSlaveSupport/ews-build/master.cfg
r243509 r243854 1 1 import os 2 2 import socket 3 import sys 4 5 from buildbot.plugins import util 3 6 4 7 import loadConfig … … 16 19 'Workers.showWorkerBuilders': True, 17 20 } 21 22 if not is_test_mode_enabled: 23 admin_username = os.getenv('EWS_ADMIN_USERNAME') 24 admin_password = os.getenv('EWS_ADMIN_PASSWORD') 25 if not admin_username or not admin_password: 26 print('Environment variables for admin username/password not found. Please ensure these variables are set.') 27 sys.exit(1) 28 # See https://docs.buildbot.net/current/manual/configuration/www.html#example-configs 29 authz = util.Authz( 30 allowRules=[util.AnyControlEndpointMatcher(role="admin")], 31 roleMatchers=[util.RolesFromEmails(admin=[admin_username])] 32 ) 33 auth = util.UserPasswordAuth({admin_username: admin_password}) 34 c['www']['auth'] = auth 35 c['www']['authz'] = authz 18 36 19 37 c['protocols'] = {'pb': {'port': 17000}} -
trunk/Tools/ChangeLog
r243852 r243854 1 2019-04-03 Aakash Jain <aakash_jain@apple.com> 2 3 [ews-build] Cancel build and similar operations should have authentication 4 https://bugs.webkit.org/show_bug.cgi?id=196520 5 6 Reviewed by Dewei Zhu. 7 8 * BuildSlaveSupport/ews-build/master.cfg: Configure authentication using admin's username and password from 9 environment variables. 10 1 11 2019-04-03 Aakash Jain <aakash_jain@apple.com> 2 12
Note: See TracChangeset
for help on using the changeset viewer.