Bug 1425931: Allow specifying eslint via try syntax. draft
authorTom Prince <mozilla@hocat.ca>
Sat, 18 Nov 2017 01:27:34 -0700
changeset 23522 830856b162108e09f0839580ec18780b27b565a0
parent 23521 13ca971230edc65f347f201a5b39f44415fb77b4
child 23523 e78a71efe3353dcfbf5015ac06f7ef850700536f
child 23525 cc7383983a8014e3ff88f6cdf474d1eecb02ea55
push id180
push userbmo:mozilla@hocat.ca
push dateMon, 18 Dec 2017 20:24:03 +0000
bugs1425931
Bug 1425931: Allow specifying eslint via try syntax. MozReview-Commit-ID: EEWnETcuSnJ
taskcluster/ci/source-test/kind.yml
taskcluster/ci/source-test/mozlint.yml
--- a/taskcluster/ci/source-test/kind.yml
+++ b/taskcluster/ci/source-test/kind.yml
@@ -1,13 +1,14 @@
 # This Source Code Form is subject to the terms of the Mozilla Public
 # License, v. 2.0. If a copy of the MPL was not distributed with this
 # file, You can obtain one at http://mozilla.org/MPL/2.0/.
 
 loader: taskgraph.loader.transform:loader
 
 transforms:
+    - taskgraph.transforms.try_job:transforms
    - taskgraph.transforms.source_test:transforms
    - taskgraph.transforms.job:transforms
    - taskgraph.transforms.task:transforms
 
 jobs-from:
     - mozlint.yml
--- a/taskcluster/ci/source-test/mozlint.yml
+++ b/taskcluster/ci/source-test/mozlint.yml
@@ -1,22 +1,25 @@
+job-defaults:
+    always-target: true
+    treeherder:
+        kind: test
+        tier: 1
+    worker-type: aws-provisioner-v1/gecko-t-linux-xlarge
+    worker:
+        docker-image: {in-tree: "lint"}
+        max-run-time: 1800
+
 eslint:
     description: JS lint check
     platform: lint/opt
     treeherder:
         symbol: ES
-        kind: test
-        tier: 1
-    worker-type: aws-provisioner-v1/gecko-t-linux-xlarge
-    worker:
-        docker-image:
-          in-tree: "lint"
-        max-run-time: 1800
     run:
         using: run-task
         comm-checkout: true
         command: >
             cd /builds/worker/checkouts/gecko/ &&
             cp -r /build/node_modules_eslint node_modules &&
             ln -s ../tools/lint/eslint/eslint-plugin-mozilla node_modules &&
             ln -s ../tools/lint/eslint/eslint-plugin-spidermonkey-js node_modules &&
             cd /builds/worker/checkouts/gecko/comm &&
-            ../mach lint -l eslint -f treeherder --quiet
+            ../mach lint -f treeherder -l eslint --quiet