mirror of
https://github.com/YunoHost/yunorunner.git
synced 2024-09-03 20:05:52 +02:00
[enh] respect analyseCI.sh cli api
This commit is contained in:
parent
2289300908
commit
e3355f5081
1 changed files with 3 additions and 2 deletions
5
run.py
5
run.py
|
@ -77,7 +77,7 @@ async def initialize_app_list():
|
||||||
|
|
||||||
print(f"Schedule a new build for {app_id}")
|
print(f"Schedule a new build for {app_id}")
|
||||||
job = Job.create(
|
job = Job.create(
|
||||||
name=f"{app_id} stable",
|
name=f"{app_id} (Official)",
|
||||||
url_or_path=repo.url,
|
url_or_path=repo.url,
|
||||||
target_revision=app_data["git"]["revision"],
|
target_revision=app_data["git"]["revision"],
|
||||||
yunohost_version="stretch-stable",
|
yunohost_version="stretch-stable",
|
||||||
|
@ -140,7 +140,8 @@ async def run_job(worker, job):
|
||||||
print(f"Starting job {job.name}...")
|
print(f"Starting job {job.name}...")
|
||||||
|
|
||||||
cwd = os.path.split(path_to_analyseCI)[0]
|
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,
|
cwd=cwd,
|
||||||
stdout=asyncio.subprocess.PIPE,
|
stdout=asyncio.subprocess.PIPE,
|
||||||
stderr=asyncio.subprocess.PIPE)
|
stderr=asyncio.subprocess.PIPE)
|
||||||
|
|
Loading…
Add table
Reference in a new issue