Bug 1289823 - Make taskcluster action-task more flexible draft
authorBrian Stack <bstack@mozilla.com>
Mon, 28 Nov 2016 14:15:31 -0800
changeset 444822 155343f671b514d4714b4c5e15cf35abc4a3a72f
parent 444725 8387a4ada9a5c4cab059d8fafe0f8c933e83c149
child 447831 1e8802f9a9fae0b2fe6ac4a1110b621bdba99ca5
child 447832 aeaf2b8a058c6b8dc508ee2cdc05c2968c036e77
child 447840 32723987ead519084e5d3b80ec3ed4ca525e922f
child 447843 39e926064c49d82102d1c19460e2a68e433b32ee
child 448835 106da6ced6ed195624d8f5b6feca51b11162af6e
push id37379
push userbstack@mozilla.com
push dateMon, 28 Nov 2016 22:17:42 +0000
bugs1289823
milestone53.0a1
Bug 1289823 - Make taskcluster action-task more flexible MozReview-Commit-ID: 8qoJsFeFm6I
taskcluster/taskgraph/action.yml
taskcluster/taskgraph/decision.py
--- a/taskcluster/taskgraph/action.yml
+++ b/taskcluster/taskgraph/action.yml
@@ -54,19 +54,17 @@ payload:
     - /home/worker/bin/run-task
     - '--vcs-checkout=/home/worker/checkouts/gecko'
     - '--'
     - bash
     - -cx
     - >
         cd /home/worker/checkouts/gecko &&
         ln -s /home/worker/artifacts artifacts &&
-        ./mach --log-no-times taskgraph action-task
-        --decision-id='{{decision_task_id}}'
-        --task-label='{{task_labels}}'
+        ./mach --log-no-times taskgraph action-task {{action_args}}
 
   artifacts:
     'public':
       type: 'directory'
       path: '/home/worker/artifacts'
       expires: '{{#from_now}}7 days{{/from_now}}'
 
 extra:
--- a/taskcluster/taskgraph/decision.py
+++ b/taskcluster/taskgraph/decision.py
@@ -176,14 +176,13 @@ def write_artifact(filename, data):
     else:
         raise TypeError("Don't know how to write to {}".format(filename))
 
 
 def get_action_yml(parameters):
     templates = Templates(os.path.join(GECKO, "taskcluster/taskgraph"))
     action_parameters = parameters.copy()
     action_parameters.update({
-        "decision_task_id": "{{decision_task_id}}",
-        "task_labels": "{{task_labels}}",
+        "action_args": "{{action_args}}",
         "from_now": json_time_from_now,
         "now": current_json_time()
     })
     return templates.load('action.yml', action_parameters)