Optimize steps
This commit is contained in:
parent
b020325a08
commit
53fcd7e7b9
|
@ -32,30 +32,12 @@ def add_parent_step(build_factory):
|
||||||
Add a step to the parent build factory that will trigger the child hooks
|
Add a step to the parent build factory that will trigger the child hooks
|
||||||
"""
|
"""
|
||||||
|
|
||||||
build_factory.addStep(steps.ShellCommand(
|
|
||||||
name="Update APT cache",
|
|
||||||
command=["sudo", "apt", "update"]
|
|
||||||
))
|
|
||||||
|
|
||||||
build_factory.addStep(steps.ShellCommand(
|
|
||||||
name="Install dependencies",
|
|
||||||
command=["sudo", "apt", "-y", "install", "python3-requests"]
|
|
||||||
))
|
|
||||||
|
|
||||||
build_factory.addStep(
|
|
||||||
steps.FileDownload(
|
|
||||||
workerdest="worker_multibuild.py",
|
|
||||||
mastersrc="buildbot_multibuild/lib/worker_multibuild.py",
|
|
||||||
mode=0o444
|
|
||||||
)
|
|
||||||
)
|
|
||||||
|
|
||||||
build_factory.addStep(
|
build_factory.addStep(
|
||||||
steps.ShellCommand(
|
steps.ShellCommand(
|
||||||
name="Execute worker script",
|
name="Execute worker script",
|
||||||
command=[
|
command=[
|
||||||
"python3",
|
"python3",
|
||||||
'worker_multibuild.py',
|
'/usr/local/bin/worker_multibuild.py',
|
||||||
util.Property("buildboturl"),
|
util.Property("buildboturl"),
|
||||||
util.Property('repository'),
|
util.Property('repository'),
|
||||||
util.Property('branch')
|
util.Property('branch')
|
||||||
|
|
Loading…
Reference in New Issue
Block a user