Commit 1931d9a3 authored by norvell's avatar norvell
Browse files

Need to use CI_DEFAULT_BRANCH for finding LTV jobs

parent fa05e5a1
Loading
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -1705,7 +1705,7 @@ ivas-long-term-job-logs:
    - job_names="ivas-pytest-compare_ref-long-enc ivas-pytest-compare_ref-long-enc-lev+10 ivas-pytest-compare_ref-long-enc-lev-10 ivas-pytest-compare_ref-long-dec ivas-pytest-compare_ref-long-dec-lev+10 ivas-pytest-compare_ref-long-dec-lev-10 ivas-pytest-compare_ref-long-fx-fx ivas-pytest-compare_ref-long-fx-fx-lev+10 ivas-pytest-compare_ref-long-fx-fx-lev-10"
    - for job_name in $job_names; do
    -   echo "Getting job logs for $job_name"
    -   id_previous=$(python3 ci/get_id_of_last_job_occurence.py $CI_COMMIT_BRANCH "$job_name" $CI_PROJECT_ID)
    -   id_previous=$(python3 ci/get_id_of_last_job_occurence.py $CI_DEFAULT_BRANCH "$job_name" $CI_PROJECT_ID)
    -   echo "Job ID from variables - "$job_name", Job ID from script - $id_previous"
    -   curl --request GET "$CI_API_V4_URL/projects/$CI_PROJECT_ID/jobs/$id_previous/artifacts" --output artifacts.zip
    -   unzip artifacts.zip -d previous_artifacts