From bae23af113d502d4a2495ca9076347e7e69fc7af Mon Sep 17 00:00:00 2001 From: aurianer Date: Tue, 30 Aug 2022 13:04:20 +0200 Subject: [PATCH] Set spack user config and cache path only if not set --- .jenkins/cscs/env-common.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.jenkins/cscs/env-common.sh b/.jenkins/cscs/env-common.sh index 71c7b9abf0..132b6c18fc 100644 --- a/.jenkins/cscs/env-common.sh +++ b/.jenkins/cscs/env-common.sh @@ -7,8 +7,8 @@ module load daint-gpu spack-config export SPACK_ROOT="/apps/daint/SSL/pika/spack" -export SPACK_USER_CONFIG_PATH="${SPACK_ROOT}/../spack-user-config" -export SPACK_USER_CACHE_PATH="$SCRATCH/jenkins-pika-spack-user-cache" +test -z $SPACK_USER_CONFIG_PATH && export SPACK_USER_CONFIG_PATH="${SPACK_ROOT}/../spack-user-config" +test -z $SPACK_USER_CACHE_PATH && export SPACK_USER_CACHE_PATH="$SCRATCH/jenkins-pika-spack-user-cache" source "${SPACK_ROOT}/share/spack/setup-env.sh" spack load ccache@4.5.1 %gcc@10.3.0