forked from mirrors/gecko-dev
For a long time two copies of the 'taskgraph' module have existed in parallel. We've attempted to keep them in sync, but over time they have diverged and the maintenance burden has increased. In order to reduce this burden, we'd like to re-join the two code bases. The canonical repo will be the one that lives outside of mozilla-central, and this module will depend on it. Since they both have the same module name (taskgraph) we need to rename the version in mozilla-central to avoid collisions. Other consumers of 'taskgraph' (like mobile repos) have standardized on '<project>_taskgraph' as their module names. So replicating that here as well. Differential Revision: https://phabricator.services.mozilla.com/D127118
18 lines
517 B
Python
18 lines
517 B
Python
# This Source Code Form is subject to the terms of the Mozilla Public
|
|
# License, v. 2.0. If a copy of the MPL was not distributed with this
|
|
# file, You can obtain one at http://mozilla.org/MPL/2.0/.
|
|
|
|
"""
|
|
Transforms for adding appropriate scopes to scriptworker tasks.
|
|
"""
|
|
|
|
|
|
from gecko_taskgraph.util.scriptworker import get_balrog_server_scope
|
|
|
|
|
|
def add_balrog_scopes(config, jobs):
|
|
for job in jobs:
|
|
server_scope = get_balrog_server_scope(config)
|
|
job["scopes"] = [server_scope]
|
|
|
|
yield job
|