From 55fe681ca1cbda8b6251086a89ce686392267390 Mon Sep 17 00:00:00 2001 From: Simon Sapin Date: Mon, 4 Nov 2019 17:38:39 +0100 Subject: [PATCH] New TC: only run tasks for pushes to the `try-communitytc` branch --- .taskcluster.yml | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/.taskcluster.yml b/.taskcluster.yml index 649cec45f55..1aba72b9aa6 100644 --- a/.taskcluster.yml +++ b/.taskcluster.yml @@ -47,7 +47,18 @@ tasks: $if: "event.ref[:11] == 'refs/heads/'" then: "${event.ref[11:]}" in: - $if: "branch in ['auto', 'try', 'master'] || branch[:4] == 'try-'" + $if: >- + ( + taskcluster_root_url == 'https://community-tc.services.mozilla.com' && + branch == 'try-communitytc' + ) || ( + taskcluster_root_url == 'https://taskcluster.net' && + branch != 'try-communitytc' && + ( + branch in ['auto', 'try', 'master'] || + branch[:4] == 'try-' + ) + ) then: $mergeDeep: - {$eval: "task_common"}