From 47c6f281f862a1e1eddd8f0b7edcc8784f206ec3 Mon Sep 17 00:00:00 2001 From: Philip Nagler-Frank Date: Fri, 18 Mar 2022 10:21:25 +0100 Subject: [PATCH] don't try to build when breakfast fails --- src/build.sh | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/build.sh b/src/build.sh index 1eb33a4..5f17c7c 100755 --- a/src/build.sh +++ b/src/build.sh @@ -322,7 +322,12 @@ for branch in ${BRANCH_NAME//,/ }; do set +eu breakfast "$codename" "$BUILD_TYPE" &>> "$DEBUG_LOG" + breakfast_returncode=$? set -eu + if [ $breakfast_returncode -ne 0 ]; then + echo ">> [$(date)] breakfast failed for $codename, $branch branch" | tee -a "$DEBUG_LOG" + continue + fi if [ -f /root/userscripts/pre-build.sh ]; then echo ">> [$(date)] Running pre-build.sh for $codename" >> "$DEBUG_LOG"