File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -606,7 +606,9 @@ pipeline {
606606 for i in "${CACHE[@]}"; do
607607 docker push ${i}:amd64-${COMMIT_SHA}-${BUILD_NUMBER} &
608608 done
609- wait
609+ for p in $(jobs -p); do
610+ wait "$p" || { echo "job $p failed" >&2; exit 1; }
611+ done
610612 fi
611613 '''
612614 }
@@ -670,7 +672,9 @@ pipeline {
670672 for i in "${CACHE[@]}"; do
671673 docker push ${i}:amd64-${COMMIT_SHA}-${BUILD_NUMBER} &
672674 done
673- wait
675+ for p in $(jobs -p); do
676+ wait "$p" || { echo "job $p failed" >&2; exit 1; }
677+ done
674678 fi
675679 '''
676680 }
@@ -727,7 +731,9 @@ pipeline {
727731 for i in "${CACHE[@]}"; do
728732 docker push ${i}:arm64v8-${COMMIT_SHA}-${BUILD_NUMBER} &
729733 done
730- wait
734+ for p in $(jobs -p); do
735+ wait "$p" || { echo "job $p failed" >&2; exit 1; }
736+ done
731737 fi
732738 '''
733739 }
You can’t perform that action at this time.
0 commit comments