Commit 1f50bfb3 authored by Jan Kiene's avatar Jan Kiene
Browse files

create html page in mld job

parent 0a457f8e
Loading
Loading
Loading
Loading
Loading
+3 −2
Original line number Diff line number Diff line
@@ -245,8 +245,9 @@ stages:
    - if [ $UPDATE_PAGES != "" ]; then wget https://forge.3gpp.org/rep/ivas-codec-pc/ivas-codec/-/raw/3c1b6994912cbe6e3c5463b02a1a6c970f449b96/ci/get_id_of_last_job_occurence.py; id_previous=$(python3 get_id_of_last_job_occurence.py $CI_DEFAULT_BRANCH $CI_JOB_NAME $CI_PROJECT_ID); echo "Job ID from variables - $CI_JOB_ID, Job ID from script - $id_previous"; fi
    - curl --request GET "https://forge.3gpp.org/rep/api/v4/projects/$CI_PROJECT_ID/jobs/$id_previous/artifacts" --output artifacts.zip
    - unzip artifacts.zip -d previous_artifacts
    - head mld.csv
    - head previous_artifacts/mld.csv
    # This wildcard thingy relies on only one csv file being present per job
    - file_previous="previous_artifacts/mld--ivas-pytest-mld-long-dec-$id_previous--sha-*.csv"
    - python3 ci/basop-pages/create_report_pages.py index.html mld.csv $file_previous $CI_JOB_ID $id_previous $CI_JOB_NAME

    - if [ $zero_errors != 1 ]; then echo "Run errors encountered!"; exit $EXIT_CODE_FAIL; fi
    - if [ $exit_code -eq 1 ]; then echo "Differences encountered"; exit $EXIT_CODE_NON_BE; fi