From fccfa1cebffe6178388bc23a9109018857370950 Mon Sep 17 00:00:00 2001 From: Johan Lorenzo Date: Wed, 27 Mar 2019 12:22:44 +0100 Subject: [PATCH] [fenix] Only email build failures when not staging --- automation/taskcluster/lib/tasks.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/automation/taskcluster/lib/tasks.py b/automation/taskcluster/lib/tasks.py index 4d50118746..c4aadfcc84 100644 --- a/automation/taskcluster/lib/tasks.py +++ b/automation/taskcluster/lib/tasks.py @@ -65,6 +65,10 @@ class TaskBuilder(object): if cmd ) + routes = [] if is_staging else [ + "notify.email.fenix-eng-notifications@mozilla.com.on-failed" + ] + return self._craft_build_ish_task( name='Fenix - Build task', description='Build Fenix from source code', @@ -73,7 +77,7 @@ class TaskBuilder(object): "secrets:get:{}".format(secret) for secret in (sentry_secret, leanplum_secret) ], artifacts=artifacts, - routes=["notify.email.fenix-eng-notifications@mozilla.com.on-failed"], + routes=routes, is_staging=is_staging, )