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

Cache failed blocks new jobs

parent 54b5ea52
No related branches found
No related tags found
No related merge requests found
Pipeline #179373 canceled
...@@ -61,13 +61,11 @@ spack:setup: ...@@ -61,13 +61,11 @@ spack:setup:
- SPACK_VERSION=$(jq -r .spack.version config.json) - SPACK_VERSION=$(jq -r .spack.version config.json)
- | - |
if [ ! -d spack ]; then if [ ! -d spack/.git ]; then
git clone https://github.com/spack/spack.git -b $SPACK_VERSION spack git clone https://github.com/spack/spack.git -b $SPACK_VERSION spack
else else
cd spack git -C spack fetch
git fetch git -C spack checkout $SPACK_VERSION
git checkout $SPACK_VERSION
cd -
fi fi
- spack/bin/spack gpg trust $GPG_PRIVATE_KEY - spack/bin/spack gpg trust $GPG_PRIVATE_KEY
...@@ -86,10 +84,8 @@ spack:setup: ...@@ -86,10 +84,8 @@ spack:setup:
url_branch=$(jq -r ".spack.repos.\"${repo}\".url" config.json) url_branch=$(jq -r ".spack.repos.\"${repo}\".url" config.json)
git clone -b ${repo_branch} ${url_branch} /stack/extra_repos/$repo git clone -b ${repo_branch} ${url_branch} /stack/extra_repos/$repo
else else
cd /stack/extra_repos/$repo git -C /stack/extra_repos/$repo fetch
git fetch git -C /stack/extra_repos/$repo checkout ${repo_branch}
git checkout ${repo_branch}
cd -
fi fi
done done
......
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