From 89d0e9604a4117a8b4d6b99aa0d7ca49e6c06ded Mon Sep 17 00:00:00 2001 From: Johan Lorenzo Date: Wed, 27 Mar 2019 12:22:44 +0100 Subject: [PATCH] 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 4d5011874..c4aadfcc8 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, )