diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 8e054fd8836eed3cbe9f7db2b82bb83f424a26b1..3dda567e5e9e0603ee0c05b818c3b2897b57e6f7 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -187,10 +187,10 @@ build-spack-env-on-runner: - mkdir spack_logs # succesfully installed packages: keep the spack logs for any package modified during this CI job - cp --parents $SPACK_DEV_PATH/opt/spack/linux-ubuntu20.04-x86_64/gcc-10.3.0/*/.spack/*.txt ./ - - mv .$SPACK_DEV_PATH/opt/spack/linux-ubuntu20.04-x86_64/gcc-10.3.0 spack_logs/installed + - mv .$SPACK_DEV_PATH/opt/spack/linux-ubuntu20.04-x86_64/gcc-10.3.0 spack_logs/installed || echo "No logs for installed packages" # not succesfully installed packages: also keep the spack logs for any packages that failed - cp --parents /tmp/$(whoami)/spack-stage/*/*.txt ./ - - mv ./tmp/$(whoami)/spack-stage spack_logs/not_installed + - mv ./tmp/$(whoami)/spack-stage spack_logs/not_installed || echo "No logs for not-installed packages" artifacts: paths: - spack_logs @@ -251,10 +251,10 @@ sync-gitlab-spack-instance: # succesfully installed packages: keep the spack logs for any package modified during this CI job # (we use repo.yaml, that is modified at each start of the pipeline, as a reference file) - find $SPACK_PATH/opt/spack/linux-ubuntu20.04-x86_64/gcc-10.3.0/*/.spack/*.txt -newer $SPACK_REPO_PATH/repo.yaml -exec cp --parents -r "{}" ./ \; - - mv .$SPACK_PATH/opt/spack/linux-ubuntu20.04-x86_64/gcc-10.3.0 spack_logs/installed + - mv .$SPACK_PATH/opt/spack/linux-ubuntu20.04-x86_64/gcc-10.3.0 spack_logs/installed || echo "No logs for installed packages" # not succesfully installed packages: also keep the spack logs for any packages that failed - cp --parents /tmp/$(whoami)/spack-stage/*/*.txt ./ - - mv ./tmp/$(whoami)/spack-stage spack_logs/not_installed + - mv ./tmp/$(whoami)/spack-stage spack_logs/not_installed || echo "No logs for not-installed packages" artifacts: paths: - spack_logs