Bug 1797207 - Skip sentry tasks on projects other than central or try. DONTBUILD

The required secrets: scopes are only granted for these projects,
per https://hg.mozilla.org/ci/ci-configuration/rev/5c23f21897d9

Differential Revision: https://phabricator.services.mozilla.com/D160157
This commit is contained in:
Mike Hommey 2022-10-24 23:12:03 +00:00
Родитель 59f0bf3c13
Коммит fccb54a2a7
1 изменённых файлов: 2 добавлений и 0 удалений

Просмотреть файл

@ -10,6 +10,8 @@ transforms = TransformSequence()
@transforms.add
def sentry(config, tasks):
"""Do transforms specific to github-sync tasks."""
if config.params["project"] not in ["mozilla-central", "try"]:
return
for task in tasks:
scopes = [
scope.format(level=config.params["level"]) for scope in task["scopes"]