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:
parent
8a838fbc0f
commit
42b6a19d3d
|
@ -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() {
|
||||||
|
|
Loading…
Reference in New Issue