Skip to content

Commit

Permalink
Issue #422: Make sure fddaq step doesn't continue on failure
Browse files Browse the repository at this point in the history
  • Loading branch information
andrewmogan committed Jan 24, 2025
1 parent e522798 commit d7ce12e
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions scripts/spack/build-release.sh
Original file line number Diff line number Diff line change
Expand Up @@ -110,8 +110,10 @@ while true; do
spack install --reuse ${DET}daq@${RELEASE_TAG}%gcc@${GCC_VERSION} build_type=RelWithDebInfo arch=linux-${OS}-x86_64 | tee dunedaq_build_spack_install.log || true
spack_install_exit_code=${PIPESTATUS[0]}
# Intentional failure on each attempt
bash -c "echo '==> Error: FetchError: All fetchers failed'; exit 42" 2>&1 | tee dunedaq_build_spack_install.log
spack_install_exit_code=${PIPESTATUS[0]}
if [[ $DET == "fd" ]]; then
bash -c "echo '==> Error: FetchError: All fetchers failed'; exit 42" 2>&1 | tee dunedaq_build_spack_install.log
spack_install_exit_code=${PIPESTATUS[0]}
fi
if [[ $spack_install_exit_code -eq 0 ]]; then
echo "Build succeeded on attempt number $attempt"
break
Expand Down

0 comments on commit d7ce12e

Please sign in to comment.