forked from mirrors/gecko-dev
Bug 1884138 - notify releng when scriptworker-canary task fails r=taskgraph-reviewers,releng-reviewers,bhearsum
The scriptworker-canary task sets up notifications for the tasks that it schedules on try, but we might still want to be notified if `mach try scriptworker` itself fails. Differential Revision: https://phabricator.services.mozilla.com/D203917
This commit is contained in:
parent
f03d79c7bc
commit
91c9577d5e
1 changed files with 5 additions and 1 deletions
|
|
@ -32,7 +32,8 @@ def build_command(config, jobs):
|
|||
command = ["release", "push-scriptworker-canary"]
|
||||
for scriptworker in scriptworkers:
|
||||
command.extend(["--scriptworker", scriptworker])
|
||||
for address in job.pop("addresses"):
|
||||
addresses = job.pop("addresses")
|
||||
for address in addresses:
|
||||
command.extend(["--address", address])
|
||||
if "ssh-key-secret" in job:
|
||||
ssh_key_secret = job.pop("ssh-key-secret")
|
||||
|
|
@ -42,4 +43,7 @@ def build_command(config, jobs):
|
|||
job.setdefault("run", {}).update(
|
||||
{"using": "mach", "mach": " ".join(map(shell_quote, command))}
|
||||
)
|
||||
job.setdefault("routes", []).extend(
|
||||
[f"notify.email.{address}.on-failed" for address in addresses]
|
||||
)
|
||||
yield job
|
||||
|
|
|
|||
Loading…
Reference in a new issue