Commit b8541b1c authored by kinuthia's avatar kinuthia
Browse files

bug fix causing job not to be found

parent 5601670a
Loading
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -1657,7 +1657,7 @@ ivas-long-term-job-logs:
    # Get previous logs of this job incase we are running on a different machine
    - if [ -d "logs" ]; then rm -rf "logs"; fi
    - id_previous=$(python3 ci/get_id_of_last_job_occurence.py $CI_DEFAULT_BRANCH "$CI_JOB_NAME" $CI_PROJECT_ID)
    - echo "Job ID from variables - "$job_name", Job ID from script - $id_previous"
    - echo "Job ID from variables - "$CI_JOB_NAME", Job ID from script - $id_previous"
    - 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 logs