Bug 1289823 - Make taskcluster action-task more flexible r=armenzg,dustin
authorBrian Stack <bstack@mozilla.com>
Mon, 28 Nov 2016 14:15:31 -0800
changeset 325928 1bdd821a52e211bd2a8a409376fcdaa6f60b8201
parent 325927 0976b84eac9d1da12e4193f2987b75c3790ed3a1
child 325929 5d8a7572ef5933b1fdb515c6ba65fe4c3d7859c4
push id35094
push userryanvm@gmail.com
push dateThu, 15 Dec 2016 02:52:25 +0000
treeherderautoland@5d8a7572ef59 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersarmenzg, dustin
bugs1289823
milestone53.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 1289823 - Make taskcluster action-task more flexible r=armenzg,dustin 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
@@ -174,14 +174,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)