diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index 16579112c73269ecd90b8f1942aa10a1ab43eb9f..d1c87e253952f03ad89a74cc6eb25384e09880cb 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -10,7 +10,7 @@ pages:
     - BRANCHES="v2019 v2020 v2021dev3 v2021pre v2022dev0"
     - for BRANCH in $BRANCHES; do
     -   echo "Retrieving archive for $BRANCH"
-    -   curl --location --output $BRANCH.zip "https://gitlab.apertis.org/tests/apertis-test-cases/-/jobs/artifacts/apertis/$BRANCH/download?job=render-pages" && unzip -d public $BRANCH.zip || true
+    -   curl --fail --location --output $BRANCH.zip "https://gitlab.apertis.org/tests/apertis-test-cases/-/jobs/artifacts/apertis/$BRANCH/download?job=render-pages" && unzip -d public $BRANCH.zip || true
     - done
     - cp static/* public/
     - ./atc_menu -o ./public/ public/