Bug 1499590 - Taskcluster configuration for blocklist.xml updates draft
authorRob Lemley <rob@thunderbird.net>
Tue, 16 Oct 2018 22:35:03 -0400
changeset 68382 403de64843b7e06e6d0c7ba9f76a79ec19b223b4
parent 68261 229c5a7bba530c27a1b8e5e373bff177f17fe424
child 68383 68dabb2090660c651ea8e971f273e76a0e8c2f6e
push id7143
push userthunderbird@calypsoblue.org
push dateFri, 19 Oct 2018 20:56:38 +0000
treeherdertry-comm-central@68dabb209066 [default view] [failures only]
bugs1499590
Bug 1499590 - Taskcluster configuration for blocklist.xml updates - Create new cron job to run the update - Create new kind to generate take for Thunderbird Differential Revision: https://phabricator.services.mozilla.com/D8947
.cron.yml
taskcluster/ci/repo-update/kind.yml
--- a/.cron.yml
+++ b/.cron.yml
@@ -48,8 +48,30 @@ jobs:
     - name: nightly-win64
       job:
           type: decision-task
           treeherder-symbol: Nd-win64
           target-tasks-method: nightly_win64
       run-on-projects:
           - comm-central
       when: []  # never (hook only)
+
+    - name: periodic-update
+      job:
+          type: decision-task
+          treeherder-symbol: Nfile
+          target-tasks-method: file_update
+      run-on-projects:
+          - comm-central
+          - comm-beta
+          - comm-esr60
+      when:
+          by-project:
+              # No default branch
+              comm-central:
+                  - {weekday: 'Monday', hour: 10, minute: 0}
+                  - {weekday: 'Thursday', hour: 10, minute: 0}
+              comm-beta:
+                  - {weekday: 'Monday', hour: 10, minute: 0}
+                  - {weekday: 'Thursday', hour: 10, minute: 0}
+              comm-esr60:
+                  - {weekday: 'Monday', hour: 10, minute: 0}
+                  - {weekday: 'Thursday', hour: 10, minute: 0}
new file mode 100644
--- /dev/null
+++ b/taskcluster/ci/repo-update/kind.yml
@@ -0,0 +1,48 @@
+# 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.repo_update:transforms
+   - taskgraph.transforms.task:transforms
+
+
+job-defaults:
+   worker:
+      env:
+         DO_BLOCKLIST:
+            by-project:
+               comm-central: "1"
+               comm-esr60: "1"
+               comm-beta: "1"
+               default: ""
+         USE_MOZILLA_CENTRAL: ""
+
+
+jobs:
+   blocklist-update:
+      name: periodic_file_update
+      description: Blocklist update
+      run-on-projects: []  # Only run via cron
+      treeherder:
+         kind: build
+         platform: linux64/opt
+         symbol: pfu
+         tier: 1
+      worker-type: aws-provisioner-v1/gecko-{level}-b-linux
+      worker:
+         implementation: docker-worker
+         os: linux
+         docker-image: {in-tree: periodic-updates}
+         max-run-time: 3600  # Takes < 1 minute
+         env:
+            PRODUCT: thunderbird
+            REVIEWERS: "rjl"
+         command:
+            - /runme.sh
+         taskcluster-proxy: true
+
+      scopes:
+         - secrets:get:project/comm/thunderbird/releng/build/level-{level}/arc-phabricator-token