diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index 48d97b2f2dbfcb5d19768e910c011a73dc21537c..a1886d771b213e1b7f95eecb665cc39e829442c3 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -198,7 +198,7 @@ build-spack-env-on-runner:
   timeout: 1 day
   artifacts:
     paths:
-      - .spack-tmp/root/spack-stage
+      - .spack-tmp/root/spack-stage/spack-stage-*/*.txt
     when: on_failure
 
 
@@ -244,7 +244,7 @@ sync-gitlab-spack-instance:
   timeout: 2 days
   artifacts:
     paths:
-      - build_logs/
+      - build_logs/spack-stage-*/*.txt
     when: on_failure
   only:
     refs: