diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index 7a644c118b6ea007286a4a9d852f53dc3e9c7a2c..bd09b33d0132677e855f196b41410455a7cd96b5 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -174,7 +174,6 @@ spack:install:
     #- .spack_cache
   script:
     - source ci/stack_env.sh
-    - echo "{}" > spack-install-${environment}.xml
 
     # Cleaning patches in case one has a different hash
     - ${STACK_LOCATION}/spack/bin/spack
@@ -185,7 +184,7 @@ spack:install:
     - ${STACK_LOCATION}/spack/bin/spack
           --color always
           -e ${environment} install
-          --log-file spack-install-${environment}.xml
+          --log-file ${CI_PROJECT_DIR}/spack-install-${environment}.xml
           --log-format junit
           --only-concrete
           --fail-fast
diff --git a/ci/install_compilers.sh b/ci/install_compilers.sh
index 56f05cc004ecde4ba73c48a8408989e1f18a24f3..a9863839eb75542728d8cc16d91e3d02163ee2ba 100755
--- a/ci/install_compilers.sh
+++ b/ci/install_compilers.sh
@@ -47,7 +47,7 @@ for c in  "core_compilers" "compilers"; do
         ${STACK_LOCATION}/spack/bin/spack \
             --color always \
             install \
-            --log-file ${MOUNT_POINT}/spack-install-${c}.xml \
+            --log-file ${CI_PROJECT_DIR}/spack-install-${c}.xml \
             --log-format junit \
             --fail-fast \
             --show-log-on-error \