Skip to content

Commit ee223a1

Browse files
committed
return exit state and fail if all attempts fail
1 parent 3f3290a commit ee223a1

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

.jenkins/Jenkinsfile

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -449,8 +449,9 @@ pipeline {
449449
$([[ $BACKEND == ADAPTIVECPP ]] && [[ $ARCHITECTURE == NVIDIA ]] && echo "^llvm@17~gold~libomptarget") \
450450
$([[ $BACKEND == STDPAR-ADAPTIVECPP ]] && [[ $ARCHITECTURE == AMD ]] && echo "^llvm@18~gold~libomptarget") \
451451
$([[ $BACKEND == STDPAR-ADAPTIVECPP ]] && [[ $ARCHITECTURE == NVIDIA ]] && echo "^llvm@17~gold~libomptarget") \
452-
| tee $(tty) | tail -n 1 | cut -d " " -f 2 > ${WORKSPACE}/plssvm/${BUILD_TYPE}-${BACKEND}-${ARCHITECTURE}.installpath && break || sleep 10 || spack clean
452+
| tee $(tty) | tail -n 1 | cut -d " " -f 2 > ${WORKSPACE}/plssvm/${BUILD_TYPE}-${BACKEND}-${ARCHITECTURE}.installpath && s=0 && break || s=$? && sleep 10 && spack clean
453453
done
454+
(exit $s)
454455
455456
echo ${PIPESTATUS[@]}
456457

0 commit comments

Comments
 (0)