scriptworker.py (516B)
1 # This Source Code Form is subject to the terms of the Mozilla Public 2 # License, v. 2.0. If a copy of the MPL was not distributed with this 3 # file, You can obtain one at http://mozilla.org/MPL/2.0/. 4 5 """ 6 Transforms for adding appropriate scopes to scriptworker tasks. 7 """ 8 9 from gecko_taskgraph.util.scriptworker import get_balrog_server_scope 10 11 12 def add_balrog_scopes(config, jobs): 13 for job in jobs: 14 server_scope = get_balrog_server_scope(config) 15 job["scopes"] = [server_scope] 16 17 yield job