Bug 1328719: Add extra details to help Chain-of-Trust rebuild the decision task.
authorTom Prince <mozilla@hocat.ca>
Wed, 24 Jan 2018 13:04:12 -0700
changeset 30958 57678a6eaadebbfbdad7cb9c780bc63b8de43145
parent 30957 e08df70d593cb0b45ee120a7c357ee271edafabf
child 30959 4c9d0d891cec8ba14ffeb3357bccc201c4dcac61
push id383
push userclokep@gmail.com
push dateMon, 07 May 2018 21:52:48 +0000
bugs1328719
Bug 1328719: Add extra details to help Chain-of-Trust rebuild the decision task.
.taskcluster.yml
--- a/.taskcluster.yml
+++ b/.taskcluster.yml
@@ -104,17 +104,17 @@ tasks:
               COMM_HEAD_REV: '${push.revision}'
               HG_STORE_PATH: /buillds/worker/checkouts/hg-store
               TASKCLUSTER_CACHES: /builds/worker/checkouts
             - $if: 'tasks_for != "action"'
               then:
                 COMM_COMMIT_MSG: '${push.comment}'
             - $if: 'tasks_for == "action"'
               then:
-                ACTION_TASK_GROUP_ID: '${action.taskGroupId}'
+                ACTION_TASK_GROUP_ID: '${ownTaskId}'
                 ACTION_TASK_ID: {$json: {$eval: 'taskId'}}
                 ACTION_TASK: {$json: {$eval: 'task'}}
                 ACTION_INPUT: {$json: {$eval: 'input'}}
                 ACTION_CALLBACK: '${action.cb_name}'
                 ACTION_PARAMETERS: {$json: {$eval: 'parameters'}}
 
         cache:
           level-${repository.level}-checkouts-sparse-v1: /builds/worker/checkouts
@@ -200,8 +200,12 @@ tasks:
               parent: '${action.taskGroupId}'
               action:
                 name: '${action.name}'
                 context:
                   taskGroupId: '${action.taskGroupId}'
                   taskId: {$eval: 'taskId'}
                   input: {$eval: 'input'}
                   parameters: {$eval: 'parameters'}
+          - $if: 'tasks_for == "cron"'
+            then:
+              cron: {$json: {$eval: 'cron'}}
+          - tasks_for: '${tasks_for}'