From 2ab965d6611412c4d12db7131c58bdbf72dd5fe6 Mon Sep 17 00:00:00 2001 From: Simon Sapin Date: Fri, 17 Aug 2018 20:30:38 +0200 Subject: [PATCH] Python syntax --- decision-task.py | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/decision-task.py b/decision-task.py index f6ab76d8c9c..c16aeed6bde 100644 --- a/decision-task.py +++ b/decision-task.py @@ -14,19 +14,22 @@ payload = { "description": "", "owner": os.environ["DECISION_TASK_OWNER"], "source": os.environ["DECISION_TASK_SOURCE"], - } + }, "payload": { "maxRunTime": 600, "image": "buildpack-deps:bionic-scm", "command": [ - "/bin/bash", "--login", "-c", """ + "/bin/bash", + "--login", + "-c", + """ git clone %(DECISION_TASK_CLONE_URL)s repo && cd repo && git checkout %(DECISION_TASK_COMMIT_SHA)s && python2.7 child-task.py - """ % os.environ - ] - } + """ % os.environ, + ], + }, } result = taskcluster.Queue().createTask(task_id, payload) print("task created…? %r" % result)