From 53fcd7e7b9c64313828c059bf477f949115948de Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Peter=20=C5=A0urda?= Date: Fri, 8 Apr 2022 11:20:50 +0800 Subject: [PATCH] Optimize steps --- multibuild.py | 20 +------------------- 1 file changed, 1 insertion(+), 19 deletions(-) diff --git a/multibuild.py b/multibuild.py index e5b3da8..f594d77 100644 --- a/multibuild.py +++ b/multibuild.py @@ -32,30 +32,12 @@ def add_parent_step(build_factory): 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( steps.ShellCommand( name="Execute worker script", command=[ "python3", - 'worker_multibuild.py', + '/usr/local/bin/worker_multibuild.py', util.Property("buildboturl"), util.Property('repository'), util.Property('branch')