Fix wrong build result when single add-on build fails (#11522)

Fixes the issue that single add-on builds that fail are not marked as such in GitHub Actions.

Signed-off-by: Wouter Born <github@maindrain.net>
This commit is contained in:
Wouter Born 2021-11-05 18:42:16 +01:00 committed by GitHub
parent 8a838fbc0f
commit 42b6a19d3d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -87,7 +87,9 @@ function build_addon() {
echo "+ $mvn_command" echo "+ $mvn_command"
echo echo
set -o pipefail # exit build with error when pipes fail
$mvn_command 2>&1 | tee "$BUILD_LOG" $mvn_command 2>&1 | tee "$BUILD_LOG"
exit $?
} }
function build_based_on_changes() { function build_based_on_changes() {