Bug 1387862 - Lint taskcluster's cron.yml file, fixup lint errors. r=dustin
☠☠ backed out by 1548174c47da ☠ ☠
authorJustin Wood <Callek@gmail.com>
Sun, 06 Aug 2017 13:35:27 -0400
changeset 423311 c13bd0798514ce1b6d4b2849e4cef3d661aa2029
parent 423310 a86a804e64eed74f26f77177315ba658ecd26730
child 423312 103073e92350ad459f91594d9a0ddedeb23d9a5f
push id7761
push userjlund@mozilla.com
push dateFri, 15 Sep 2017 00:19:52 +0000
treeherdermozilla-beta@c38455951db4 [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,47 +1,49 @@
 # 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
@@ -51,32 +53,32 @@ jobs:
     - 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