From dfbb9c1a988d236fecebd80bb49f6fa267725d97 Mon Sep 17 00:00:00 2001
From: Nicolas Richart <nicolas.richart@epfl.ch>
Date: Sun, 11 Aug 2024 15:07:54 +0200
Subject: [PATCH] Spack install xml files not uploaded

---
 .gitlab-ci.yml          | 3 +--
 ci/install_compilers.sh | 2 +-
 2 files changed, 2 insertions(+), 3 deletions(-)

diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index 7a644c1..bd09b33 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 56f05cc..a986383 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 \
-- 
GitLab