Bug 1387862 - Lint taskcluster's cron.yml file, fixup lint errors. r=dustin
☠☠ backed out by 0cd4ced60476 ☠ ☠
authorJustin Wood <Callek@gmail.com>
Sun, 06 Aug 2017 13:35:27 -0400
changeset 425704 e0bfb35b0eec7dd77ffe64492c077a620c573044
parent 425703 5bb5dc7655ec63628f287ea25f851ab68c43e994
child 425705 22c1094e387f580ad2621dc006cbd44939826b38
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,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