Loading ci/setup_pages.py +2 −4 Original line number Diff line number Diff line Loading @@ -36,7 +36,7 @@ JOBS_FOR_PROJECT_ID = { ARTIFACTS = "artifacts.zip" API_URL_BASE = "https://forge.3gpp.org/rep/api/v4/projects/{}/jobs" PUBLIC_FOLDER = pathlib.Path("./public") PUBLIC_FOLDER = pathlib.Path("./public").absolute() def main(): Loading Loading @@ -64,8 +64,6 @@ def main(): def setup_pages(project_id: int): index_html = PUBLIC_FOLDER.joinpath("index.html") print(list(PUBLIC_FOLDER.iterdir())) if project_id == PROJECT_ID_FLOAT_REPO: src = pathlib.Path("ci/index-pages.html").absolute() shutil.move(src, index_html) Loading Loading @@ -107,7 +105,7 @@ def get_artifacts_for_jobs_and_return_num_failed( for artifact in tmp_dir.iterdir(): src = tmp_dir.joinpath(artifact).absolute() dst = PUBLIC_FOLDER.joinpath(artifact) dst = PUBLIC_FOLDER.joinpath(artifact.name) print(f"{src} -> {dst}") shutil.move(src, dst) Loading Loading
ci/setup_pages.py +2 −4 Original line number Diff line number Diff line Loading @@ -36,7 +36,7 @@ JOBS_FOR_PROJECT_ID = { ARTIFACTS = "artifacts.zip" API_URL_BASE = "https://forge.3gpp.org/rep/api/v4/projects/{}/jobs" PUBLIC_FOLDER = pathlib.Path("./public") PUBLIC_FOLDER = pathlib.Path("./public").absolute() def main(): Loading Loading @@ -64,8 +64,6 @@ def main(): def setup_pages(project_id: int): index_html = PUBLIC_FOLDER.joinpath("index.html") print(list(PUBLIC_FOLDER.iterdir())) if project_id == PROJECT_ID_FLOAT_REPO: src = pathlib.Path("ci/index-pages.html").absolute() shutil.move(src, index_html) Loading Loading @@ -107,7 +105,7 @@ def get_artifacts_for_jobs_and_return_num_failed( for artifact in tmp_dir.iterdir(): src = tmp_dir.joinpath(artifact).absolute() dst = PUBLIC_FOLDER.joinpath(artifact) dst = PUBLIC_FOLDER.joinpath(artifact.name) print(f"{src} -> {dst}") shutil.move(src, dst) Loading