Commit 134f07e5 authored by Jan Kiene's avatar Jan Kiene
Browse files

fix paths

parent b085c9b3
Loading
Loading
Loading
Loading
Loading
+2 −4
Original line number Diff line number Diff line
@@ -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():
@@ -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)
@@ -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)