Skip to content

Commit 93d9ef5

Browse files
committed
Do not run concurrently
1 parent 6ecb710 commit 93d9ef5

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

dev/jenkins/build-mpich.sh

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,14 @@ log()
3939
print ${(%)DATE_FMT_NICE} "build-mpich.sh:" ${*}
4040
}
4141

42+
# Detect concurrent builds. Jenkins puts an "@2" in the WORKSPACE.
43+
if [[ $WORKSPACE =~ "@" ]] {
44+
# Do not run concurrently, there is no point
45+
log "Detected concurrent build!"
46+
print
47+
return
48+
}
49+
4250
# Load any prior exit status codes
4351
if [[ -f status-old.txt ]] {
4452
read STATUS_OLD < status-old.txt

0 commit comments

Comments
 (0)