diff --git a/probe-builder/build-probe-binaries b/probe-builder/build-probe-binaries index e0c6389b64..c10998b8c4 100755 --- a/probe-builder/build-probe-binaries +++ b/probe-builder/build-probe-binaries @@ -34,6 +34,8 @@ RETRIES=10 DOWNLOAD_TIMEOUT=300 PROBE_VERSION= RUNNING_IN_DOCKER= +FAILED= +FAIL_LOG=$(mktemp /tmp/fail.log.XXXXXX) usage() { cat >&2 < $LOG + then + (echo "Build for $PROBE_ID failed"; cat $LOG) | tee -a $FAIL_LOG + FAILED=1 + else + echo "Build for $PROBE_ID successful" + cat $LOG + fi + rm -f $LOG } function coreos_build { @@ -990,6 +1013,19 @@ case "$KERNEL_TYPE" in ;; esac -echo "Success." +if [ -s "$FAIL_LOG" ] +then + echo "Failed builds:" + echo "------------------------------" + cat $FAIL_LOG +fi +rm -f $FAIL_LOG +if [ -n "$FAILED" ] +then + echo "Build failed." + exit 1 +else + echo "Success." +fi # vim: :set tabstop=8 shiftwidth=8 noexpandtab: