Bug 1493829: Cleanup routes in `.taskcluster.yml`; r=me
authorTom Prince <mozilla@hocat.ca>
Mon, 24 Sep 2018 19:48:32 -0600
changeset 33224 c695d2d8148c025254be5eab83310bf21490d418
parent 33223 ed39f537696876ed0a5a9304cf94d40621131e61
child 33225 f600e1fb24b3695e08aeee35363b91c344382f38
push id387
push userclokep@gmail.com
push dateMon, 10 Dec 2018 21:30:47 +0000
reviewersme
bugs1493829
Bug 1493829: Cleanup routes in `.taskcluster.yml`; r=me
.taskcluster.yml
--- a/.taskcluster.yml
+++ b/.taskcluster.yml
@@ -66,26 +66,25 @@ tasks:
           - "tc-treeherder.v2.${repository.project}.${push.revision}.${push.pushlog_id}"
           - "tc-treeherder-stage.v2.${repository.project}.${push.revision}.${push.pushlog_id}"
           - $if: 'tasks_for == "hg-push"'
             then:
               - "index.comm.v2.${repository.project}.latest.taskgraph.decision"
               - "index.comm.v2.${repository.project}.revision.${push.revision}.taskgraph.decision"
               - "index.comm.v2.${repository.project}.pushlog-id.${push.pushlog_id}.decision"
               - "notify.email.${ownerEmail}.on-failed"
-              - $if: '"mozilla@hocat.ca" in ownerEmail'
-                # Until taskcluster is ready for general consumption, don't report exceptions from taskcluster.
-                then: "notify.email.${ownerEmail}.on-exception"
+              - "notify.email.${ownerEmail}.on-exception"
             else:
-              - $if: 'tasks_for == "action"'
-                then:
-                  - "notify.email.taskcluster-notifications+action-task@mozilla.com.on-failed"
-                  - "notify.email.taskcluster-notifications+action-task@mozilla.com.on-exception"
-                  - "index.comm.v2.${repository.project}.pushlog-id.${_pushId}.actions.${ownTaskId}"
-                else: "index.comm.v2.${repository.project}.latest.taskgraph.decision-${cron.job_name}"
+              $if: 'tasks_for == "action"'
+              then:
+                - "notify.email.taskcluster-notifications+action-task@mozilla.com.on-failed"
+                - "notify.email.taskcluster-notifications+action-task@mozilla.com.on-exception"
+                - "index.comm.v2.${repository.project}.pushlog-id.${_pushId}.actions.${ownTaskId}"
+              else:
+                - "index.comm.v2.${repository.project}.latest.taskgraph.decision-${cron.job_name}"
 
       scopes:
         $if: 'tasks_for == "hg-push"'
         then:
           - 'assume:repo:${repoUrl[8:]}:branch:default'
           - 'queue:route:notify.email.${ownerEmail}.*'
           - 'in-tree:hook-action:project-comm/in-tree-action-${repository.level}-*'
         else: