mirror of
https://github.com/servo/servo.git
synced 2025-07-09 16:33:40 +01:00
Python syntax
This commit is contained in:
parent
0473ac29d0
commit
2ab965d661
1 changed files with 8 additions and 5 deletions
|
@ -14,19 +14,22 @@ payload = {
|
||||||
"description": "",
|
"description": "",
|
||||||
"owner": os.environ["DECISION_TASK_OWNER"],
|
"owner": os.environ["DECISION_TASK_OWNER"],
|
||||||
"source": os.environ["DECISION_TASK_SOURCE"],
|
"source": os.environ["DECISION_TASK_SOURCE"],
|
||||||
}
|
},
|
||||||
"payload": {
|
"payload": {
|
||||||
"maxRunTime": 600,
|
"maxRunTime": 600,
|
||||||
"image": "buildpack-deps:bionic-scm",
|
"image": "buildpack-deps:bionic-scm",
|
||||||
"command": [
|
"command": [
|
||||||
"/bin/bash", "--login", "-c", """
|
"/bin/bash",
|
||||||
|
"--login",
|
||||||
|
"-c",
|
||||||
|
"""
|
||||||
git clone %(DECISION_TASK_CLONE_URL)s repo &&
|
git clone %(DECISION_TASK_CLONE_URL)s repo &&
|
||||||
cd repo &&
|
cd repo &&
|
||||||
git checkout %(DECISION_TASK_COMMIT_SHA)s &&
|
git checkout %(DECISION_TASK_COMMIT_SHA)s &&
|
||||||
python2.7 child-task.py
|
python2.7 child-task.py
|
||||||
""" % os.environ
|
""" % os.environ,
|
||||||
]
|
],
|
||||||
}
|
},
|
||||||
}
|
}
|
||||||
result = taskcluster.Queue().createTask(task_id, payload)
|
result = taskcluster.Queue().createTask(task_id, payload)
|
||||||
print("task created…? %r" % result)
|
print("task created…? %r" % result)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue