Bug 1274350 - Fix scopes to use {{revision_hash}} r=me
authorTim Taubert <ttaubert@mozilla.com>
Mon, 30 May 2016 10:07:34 +0200
changeset 12214 e14139de8e2884e0aa168e017352e72650bb40a3
parent 12213 2f39a5d484bff58e370d7a0d04802bdf623edaf2
child 12215 eddc89f0b0330258f653cfcf44ad55d0df5d8244
push id1265
push userttaubert@mozilla.com
push dateMon, 30 May 2016 08:09:25 +0000
reviewersme
bugs1274350
Bug 1274350 - Fix scopes to use {{revision_hash}} r=me
.taskcluster.yml
automation/taskcluster/graph/build.js
--- a/.taskcluster.yml
+++ b/.taskcluster.yml
@@ -48,18 +48,18 @@ tasks:
 
       workerType: "hg-worker"
       provisionerId: "aws-provisioner-v1"
 
       tags:
         createdForUser: {{owner}}
 
       scopes:
-        - "queue:route:tc-treeherder-stage.nss.{{revision}}"
-        - "queue:route:tc-treeherder.nss.{{revision}}"
+        - "queue:route:tc-treeherder-stage.nss.{{revision_hash}}"
+        - "queue:route:tc-treeherder.nss.{{revision_hash}}"
         - "scheduler:extend-task-graph:*"
         # mozilla-taskcluster will append the appropriate assume:repo:<repo>
         # scope here.
 
       routes:
         - "tc-treeherder-stage.nss.{{revision_hash}}"
         - "tc-treeherder.nss.{{revision_hash}}"
 
--- a/automation/taskcluster/graph/build.js
+++ b/automation/taskcluster/graph/build.js
@@ -66,18 +66,18 @@ function generateTasks(definition) {
     task: task = {
       created: from_now(0),
       deadline: from_now(24),
       provisionerId: TC_PROVISIONER_ID,
       workerType: TC_WORKER_TYPE,
       schedulerId: "task-graph-scheduler",
 
       scopes: [
-        "queue:route:tc-treeherder-stage.nss." + TC_REVISION,
-        "queue:route:tc-treeherder.nss." + TC_REVISION,
+        "queue:route:tc-treeherder-stage.nss." + TC_REVISION_HASH,
+        "queue:route:tc-treeherder.nss." + TC_REVISION_HASH,
         "scheduler:extend-task-graph:*"
       ],
 
       routes: [
         "tc-treeherder-stage.nss." + TC_REVISION_HASH,
         "tc-treeherder.nss." + TC_REVISION_HASH
       ],