Skip to content
Snippets Groups Projects
Commit 103cb510 authored by Nicolas Richart's avatar Nicolas Richart
Browse files

Moving data to /work since they should not be deleted

parent 823c2b0f
No related branches found
No related tags found
1 merge request!2CI update to use squashfs
Pipeline #201737 failed
......@@ -17,7 +17,7 @@ workflow:
variables:
TERM: ansi
CI_DATA: "/scratch/richart/ci"
CI_DATA: "/work/scitas-ge/richart/ci"
.parallel_definition:
parallel:
......@@ -102,14 +102,6 @@ spack:checkout:
before_script:
- git config --global --add --bool advice.detachedHead false
script:
# - |
# for i in overlayfs squashfs-cache buildcache spack-mirror
# do
# if [ ! -e ${CI_DATA}/$i ]
# then
# mkdir -p ${CI_DATA}/$i
# fi
# done
- ./ci/prepare_squashfs.sh
timeout: 1h
......
......@@ -2,7 +2,7 @@
set -o pipefail
set -o nounset
set -o errexit
source ${CI_PROJECT_DIR}/ci/stack_env.sh
for i in overlayfs squashfs-cache buildcache spack-mirror
......@@ -13,6 +13,8 @@ do
fi
done
set +o errexit
# Check if MR as squashfs
sqfs_image=$(ls -t1 ${CI_DATA}/squashfs-cache/${stack}-${environment}-${squash_id}*.sqfs 2> /dev/null | head -1)
if [ $? -ne 0 ]
......@@ -31,6 +33,8 @@ then
echo "Found ${sqfs_base_image}"
fi
set -o errexit
# Link MR sqaushfs to the one of default branch
sqfs_image=${CI_DATA}/squashfs-cache/${stack}-${environment}-${squash_id}.sqfs
......@@ -40,6 +44,7 @@ then
echo "Linking ${sqfs_image} -> ${sqfs_base_image}"
else
set -o errexit
if [ ${sqfs_image} != ${CI_DATA}/squashfs-cache/${stack}-${environment}-${squash_id}.sqfs ];
then
cd ${CI_DATA}/squashfs-cache
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment