diff --git a/.github/scripts/maven-build b/.github/scripts/maven-build index 8ee64663e29..77722811027 100755 --- a/.github/scripts/maven-build +++ b/.github/scripts/maven-build @@ -87,7 +87,9 @@ function build_addon() { echo "+ $mvn_command" echo + set -o pipefail # exit build with error when pipes fail $mvn_command 2>&1 | tee "$BUILD_LOG" + exit $? } function build_based_on_changes() {