Bug 1470886 - only produce tasks for recognized tasks_for r=tomprince
☠☠ backed out by e55193f1ce01 ☠ ☠
authorDustin J. Mitchell <dustin@mozilla.com>
Mon, 25 Jun 2018 18:21:03 +0000
changeset 424707 63a6f0d75b74039d1e7a99ed2501fe607903b419
parent 424706 f1fbdf6bb926ce4845d189be4c011ad358464a0e
child 424708 2223f56e1188e5b6c057b4e441b0b2759086f129
push id104897
push usertoros@mozilla.com
push dateMon, 02 Jul 2018 22:00:15 +0000
treeherdermozilla-inbound@e2dca9594b90 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewerstomprince
bugs1470886
milestone63.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 1470886 - only produce tasks for recognized tasks_for r=tomprince MozReview-Commit-ID: Aa6g9ZqoPMa
.taskcluster.yml
--- a/.taskcluster.yml
+++ b/.taskcluster.yml
@@ -1,14 +1,16 @@
 # This file is rendered via JSON-e by
 # - mozilla-taskcluster - https://docs.taskcluster.net/reference/integrations/mozilla-taskcluster/docs/taskcluster-yml
 # - cron tasks - taskcluster/taskgraph/cron/decision.py
 # - action tasks - taskcluster/taskgraph/actions/registry.py
 version: 1
 tasks:
+  $if: 'tasks_for in ["hg-push", "action", "cron"]'
+  then:
   - $let:
       # sometimes the push user is just `ffxbld` or the like, but we want an email-like field..
       ownerEmail: {$if: '"@" in push.owner', then: '${push.owner}', else: '${push.owner}@noreply.mozilla.org'}
       # ensure there's no trailing `/` on the repo URL
       repoUrl: {$if: 'repository.url[-1] == "/"', then: {$eval: 'repository.url[:-1]'}, else: {$eval: 'repository.url'}}
     in:
       taskId: {$if: 'tasks_for != "action"', then: '${as_slugid("decision")}'}
       taskGroupId:
@@ -192,8 +194,10 @@ tasks:
                   taskGroupId: '${action.taskGroupId}'
                   taskId: {$eval: 'taskId'}
                   input: {$eval: 'input'}
                   parameters: {$eval: 'parameters'}
           - $if: 'tasks_for == "cron"'
             then:
               cron: {$json: {$eval: 'cron'}}
           - tasks_for: '${tasks_for}'
+  # no tasks for unrecognized tasks_for
+  else: []