From e3355f5081c944b6f021c2f0541c61883357978d Mon Sep 17 00:00:00 2001 From: Laurent Peuch Date: Mon, 16 Jul 2018 06:02:40 +0200 Subject: [PATCH] [enh] respect analyseCI.sh cli api --- run.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/run.py b/run.py index 6051fa4..86f4b6b 100644 --- a/run.py +++ b/run.py @@ -77,7 +77,7 @@ async def initialize_app_list(): print(f"Schedule a new build for {app_id}") job = Job.create( - name=f"{app_id} stable", + name=f"{app_id} (Official)", url_or_path=repo.url, target_revision=app_data["git"]["revision"], yunohost_version="stretch-stable", @@ -140,7 +140,8 @@ async def run_job(worker, job): print(f"Starting job {job.name}...") cwd = os.path.split(path_to_analyseCI)[0] - command = await asyncio.create_subprocess_shell("/bin/bash " + path_to_analyseCI, + arguments = f"{job.url_or_path} {job.name}" + command = await asyncio.create_subprocess_shell("/bin/bash " + path_to_analyseCI + arguments, cwd=cwd, stdout=asyncio.subprocess.PIPE, stderr=asyncio.subprocess.PIPE)