Skip to content
Snippets Groups Projects
Commit 1e64afd0 authored by Eleni Mathioulaki's avatar Eleni Mathioulaki
Browse files

keep debug test logs as artifacts

parent 88255e0b
No related branches found
No related tags found
No related merge requests found
......@@ -207,7 +207,7 @@ build-spack-env-on-runner:
- |
# succesfully installed packages: keep the spack logs for any package modified during this CI job
SPACK_PACKAGES_DIR=$SPACK_DEV_PATH/opt/spack/linux-ubuntu20.04-x86_64/gcc-10.3.0
if cp --parents $SPACK_PACKAGES_DIR/*/.spack/*.txt $SPACK_PACKAGES_DIR/*/.spack_test_results/* ./; then
if find $SPACK_PACKAGES_DIR -maxdepth 2 \( -name ".spack" -o -name ".spack_test_results" -o -name ".build" \) -exec cp -r --parents "{}" ./ \;; then
mv .$SPACK_PACKAGES_DIR spack_logs/installed
else
echo "No packages installed, so no logs to collect"
......@@ -287,8 +287,7 @@ 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)
SPACK_PACKAGES_DIR=$SPACK_PATH/spack/opt/spack/linux-ubuntu20.04-x86_64/gcc-10.3.0
if find $SPACK_PACKAGES_DIR/*/.spack/*.txt -newer $SPACK_REPO_PATH/repo.yaml -exec cp --parents -r "{}" ./ \;; then
cp --parents -r $SPACK_PACKAGES_DIR/*/.spack_test_results/* ./
if find $SPACK_PACKAGES_DIR -maxdepth 2 \( -name ".spack" -o -name ".spack_test_results" -o -name ".build" \) -newer $SPACK_REPO_PATH/repo.yaml -exec cp -r --parents "{}" ./ \;; then
mv .$SPACK_PACKAGES_DIR spack_logs/installed
else
echo "No packages installed, so no logs to collect"
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment