Bug 1412136 - [taskgraph] Don't assume all tasks have a 'tags' attribute in artifact template, r=dustin
authorAndrew Halberstadt <ahalberstadt@mozilla.com>
Fri, 27 Oct 2017 16:04:04 -0400
changeset 389078 68a8bde575ef1669a3c05e8c91b009c20948c27f
parent 389077 f70c299caf77e6d5e30a186ba9dc56170c7917d9
child 389079 79be7ec660d58aed77af5484dd4a8dec758c496f
push id32777
push userarchaeopteryx@coole-files.de
push dateMon, 30 Oct 2017 22:44:45 +0000
treeherdermozilla-central@dd0f265a1300 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersdustin
bugs1412136
milestone58.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 1412136 - [taskgraph] Don't assume all tasks have a 'tags' attribute in artifact template, r=dustin MozReview-Commit-ID: IbiD2zbCeh
taskcluster/taskgraph/templates/artifact.yml
--- a/taskcluster/taskgraph/templates/artifact.yml
+++ b/taskcluster/taskgraph/templates/artifact.yml
@@ -1,14 +1,18 @@
 ---
-$if: task.tags['kind'] == "build"
+$if: task["tags"]
 then:
-    $mergeDeep:
-        - $eval: task
-        - extra:
-              treeherder:
-                  symbol: Ba
-        - payload:
-              env:
-                  USE_ARTIFACT:
-                      $eval: input.enabled
+    $if: task.tags["kind"] == "build"
+    then:
+        $mergeDeep:
+            - $eval: task
+            - extra:
+                  treeherder:
+                      symbol: Ba
+            - payload:
+                  env:
+                      USE_ARTIFACT:
+                          $eval: input.enabled
+    else:
+        $eval: task
 else:
     $eval: task