Skip to content

Commit 64bfcf3

Browse files
committed
wait till no other spack commands are running on this server
1 parent c30b692 commit 64bfcf3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

.jenkins/Jenkinsfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -449,7 +449,7 @@ 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 && s=0 && break || s=$? && 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=$? && while ps axf | grep spack | grep -v grep >/dev/null 2>&1 ; do sleep 10 ; done && spack clean
453453
done
454454
(exit $s)
455455

0 commit comments

Comments
 (0)