Skip to content
Snippets Groups Projects
Commit c1b5e198 authored by s2870355's avatar s2870355
Browse files

exec

parent 811bf485
No related branches found
No related tags found
No related merge requests found
......@@ -67,7 +67,7 @@ def get_new_job(info : list[dict]) -> dict:
return None
def run_cli_sequential(job : dict) -> int:
return subprocess.call(args=["docker", "run", "--rm", "-v", f"{dir_path}:/usr/src/project", "-it", job['image'], os.path.join("/usr/src/project/",os.path.relpath(job['location'] , dir_path)).replace("\\", "/")])
return subprocess.call(args=["docker", "run", "--rm", "-v", f"{dir_path}:/usr/src/project", "-it", job['image'], "exec",os.path.join("/usr/src/project/",os.path.relpath(job['location'] , dir_path)).replace("\\", "/")])
def remove_from_depends(process_info : dict, jobname : str) -> dict:
if jobname in process_info["depends"]:
......@@ -110,7 +110,7 @@ def job_to_string(job : list[dict]):
else:
artifacts = "untracked"
image : str = job["image"]
script : str = "./" + job['location']
script : str = "exec " + job['location']
output: str = "\n"
output = output + name + ":\n"
output = output + '\t' + "stage: " + stage + '\n'
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment