Commit 78e57fb3 authored by norvell's avatar norvell
Browse files

Use zip -o in case of overlap between new/injected logs

parent 1931d9a3
Loading
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -1691,7 +1691,8 @@ ivas-long-term-job-logs:
    - if [ "$id_previous" != "-1" ]; then
        # Unzip artifacts to recover past logs dir
    -   curl --request GET "$CI_API_V4_URL/projects/$CI_PROJECT_ID/jobs/$id_previous/artifacts" --output artifacts.zip
    -   unzip artifacts.zip
        # If there is overlap between injected log and new log, use the new logs.
    -   unzip -o artifacts.zip
    - else
        # create logs dir if it doesn't exist
    -   mkdir logs