Changeset 294751 in webkit
- Timestamp:
- May 24, 2022, 9:39:51 AM (4 years ago)
- File:
-
- 1 edited
-
trunk/Tools/CISupport/build-webkit-org/master.cfg (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/Tools/CISupport/build-webkit-org/master.cfg
r293323 r294751 43 43 44 44 if not is_test_mode_enabled: 45 admin_username = load_password('ADMIN_USERNAME') 46 admin_password = load_password('ADMIN_PASSWORD') 47 if not admin_username or not admin_password: 48 print('\n\nERROR: Admin username/password missing from passwords.json.\n') 45 credentials = load_password('BUILD_WEBKIT_CREDENTIALS') 46 if not credentials: 47 print('BUILD_WEBKIT credentials not found. Please ensure BUILD_WEBKIT_CREDENTIALS is configured either in env variables or in passwords.json') 49 48 sys.exit(1) 50 49 # See https://docs.buildbot.net/2.10.0/manual/configuration/www.html#example-configs 51 50 authz = util.Authz( 52 51 allowRules=[util.AnyControlEndpointMatcher(role="admin")], 53 roleMatchers=[util.RolesFromEmails(admin= [admin_username])]52 roleMatchers=[util.RolesFromEmails(admin=list(credentials.keys()))] 54 53 ) 55 auth = util.UserPasswordAuth( {admin_username: admin_password})54 auth = util.UserPasswordAuth(credentials) 56 55 c['www']['auth'] = auth 57 56 c['www']['authz'] = authz
Note:
See TracChangeset
for help on using the changeset viewer.