Bug 1387862 - Lint taskcluster's cron.yml file, fixup lint errors. r=dustin
authorJustin Wood <Callek@gmail.com>
Sun, 06 Aug 2017 13:35:27 -0400
changeset 425802 4d38db927cc91dc1ced752df216dffae8cf9397b
parent 425801 15a578334064154ebf1b1228c5f527355864bb6b
child 425803 fafce110b9f694563c974192876e36f96582e6aa
push id1567
push userjlorenzo@mozilla.com
push dateThu, 02 Nov 2017 12:36:05 +0000
treeherdermozilla-release@e512c14a0406 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersdustin
bugs1387862
milestone57.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 1387862 - Lint taskcluster's cron.yml file, fixup lint errors. r=dustin We should have CI Lint YAML files in the tree. MozReview-Commit-ID: 758kdSddjJN
.cron.yml
tools/lint/yaml.yml
--- a/.cron.yml
+++ b/.cron.yml
@@ -1,82 +1,84 @@
 # Definitions for jobs that run periodically.  For details on the format, see
 # `taskcluster/taskgraph/cron/schema.py`.  For documentation, see
 # `taskcluster/docs/cron.rst`.
 
+---
+
 jobs:
     - name: nightly-desktop
       job:
           type: decision-task
           treeherder-symbol: Nd
           target-tasks-method: nightly_desktop
       run-on-projects:
           - mozilla-central
           - date
       when:
           by-project:
-            # Match buildbot starts for now
-            date: [{hour: 15, minute: 0}]
-            mozilla-central: [{hour: 10, minute: 0}]
-            # No default
+              # Match buildbot starts for now
+              date: [{hour: 15, minute: 0}]
+              mozilla-central: [{hour: 10, minute: 0}]
+              # No default
 
     - name: nightly-desktop-linux
       job:
           type: decision-task
           treeherder-symbol: Nd-Ln
           target-tasks-method: nightly_linux
       run-on-projects:
           - mozilla-central
           - date
-      when: [] # never (hook only)
+      when: []  # never (hook only)
 
     - name: nightly-desktop-osx
       job:
           type: decision-task
           treeherder-symbol: Nd-OSX
           target-tasks-method: nightly_macosx
       run-on-projects:
           - mozilla-central
           - date
-      when: [] # never (hook only)
+      when: []  # never (hook only)
 
     - name: nightly-desktop-win32
       job:
           type: decision-task
           treeherder-symbol: Nd-win32
           target-tasks-method: nightly_win32
       run-on-projects:
           - mozilla-central
           - date
-      when: [] # never (hook only)
+      when: []  # never (hook only)
 
     - name: nightly-desktop-win64
       job:
           type: decision-task
           treeherder-symbol: Nd-win64
           target-tasks-method: nightly_win64
       run-on-projects:
           - mozilla-central
           - date
-      when: [] # never (hook only)
+      when: []  # never (hook only)
 
     - name: nightly-android
       job:
           type: decision-task
           treeherder-symbol: Na
           target-tasks-method: nightly_fennec
       run-on-projects:
           - mozilla-central
           - date
       when:
-        by-project:
-            # Match buildbot starts for now
-            date: [{hour: 15, minute: 0}]
-            mozilla-central: [{hour: 10, minute: 0}]
-            # No default
+          by-project:
+              # Match buildbot starts for now
+              date: [{hour: 15, minute: 0}]
+              mozilla-central: [{hour: 10, minute: 0}]
+              # No default
 
     - name: nightly-mochitest-valgrind
       job:
           type: decision-task
           treeherder-symbol: Vg
           target-tasks-method: mochitest_valgrind
       run-on-projects:
           - mozilla-central
@@ -88,10 +90,10 @@ jobs:
       job:
           type: decision-task
           treeherder-symbol: Ndmd
           target-tasks-method: nightly_dmd
       run-on-projects:
           - mozilla-central
       when:
           by-project:
-            mozilla-central: [{hour: 10, minute: 0}]
-            # No default
+              mozilla-central: [{hour: 10, minute: 0}]
+              # No default
--- a/tools/lint/yaml.yml
+++ b/tools/lint/yaml.yml
@@ -1,7 +1,8 @@
 yamllint:
     description: YAML linter
     include:
+        - .cron.yml
         - taskcluster
     extensions: ['yml', 'yaml']
     type: external
     payload: yamllint_:lint