File tree Expand file tree Collapse file tree 1 file changed +9
-3
lines changed
Expand file tree Collapse file tree 1 file changed +9
-3
lines changed Original file line number Diff line number Diff line change @@ -540,7 +540,9 @@ pipeline {
540540 for i in "${CACHE[@]}"; do
541541 docker push ${i}:amd64-${COMMIT_SHA}-${BUILD_NUMBER} &
542542 done
543- wait
543+ for p in $(jobs -p); do
544+ wait "$p" || { echo "job $p failed" >&2; exit 1; }
545+ done
544546 fi
545547 '''
546548 }
@@ -603,7 +605,9 @@ pipeline {
603605 for i in "${CACHE[@]}"; do
604606 docker push ${i}:amd64-${COMMIT_SHA}-${BUILD_NUMBER} &
605607 done
606- wait
608+ for p in $(jobs -p); do
609+ wait "$p" || { echo "job $p failed" >&2; exit 1; }
610+ done
607611 fi
608612 '''
609613 }
@@ -659,7 +663,9 @@ pipeline {
659663 for i in "${CACHE[@]}"; do
660664 docker push ${i}:arm64v8-${COMMIT_SHA}-${BUILD_NUMBER} &
661665 done
662- wait
666+ for p in $(jobs -p); do
667+ wait "$p" || { echo "job $p failed" >&2; exit 1; }
668+ done
663669 fi
664670 '''
665671 }
You can’t perform that action at this time.
0 commit comments