trigger_comm_central.py (663B)
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 https://mozilla.org/MPL/2.0/. 4 5 """ 6 Resolve keys for the jobs defined in the trigger-comm-central kind. 7 """ 8 9 from taskgraph.transforms.base import TransformSequence 10 from taskgraph.util.schema import resolve_keyed_by 11 12 transforms = TransformSequence() 13 14 15 @transforms.add 16 def resolve_keys(config, jobs): 17 for job in jobs: 18 resolve_keyed_by( 19 job, 20 "scopes", 21 item_name=job["name"], 22 level=config.params["level"], 23 ) 24 yield job