1
0
mirror of https://github.com/lineageos4microg/docker-lineage-cicd synced 2024-11-09 10:09:56 +01:00

Check userscriptfail *for each device*. Exit immediately if true

This commit is contained in:
Pete Fotheringham 2024-09-02 16:00:14 +01:00
parent 5b66b04504
commit eb1b7fa107

@ -408,6 +408,11 @@ for codename in ${devices//,/ }; do
echo ">> [$(date)] Error: post-build.sh failed for $codename on $branch!"; userscriptfail=true; } echo ">> [$(date)] Error: post-build.sh failed for $codename on $branch!"; userscriptfail=true; }
fi fi
echo ">> [$(date)] Finishing build for $codename" | tee -a "$DEBUG_LOG" echo ">> [$(date)] Finishing build for $codename" | tee -a "$DEBUG_LOG"
do_cleanup do_cleanup
if [ $userscriptfail = true ]; then
echo ">> [$(date)] One or more userscripts failed!"
exit 1
fi
fi fi
done done