From 73ee6215490ed957c13c8dbe03814b039d6ddd5c Mon Sep 17 00:00:00 2001 From: Damien Martin-Guillerez Date: Mon, 5 Oct 2015 11:57:25 +0000 Subject: [ci] Do not exit on success Before, CI was exiting when an exit code of 0 was returned, failing to build the installer script. Tested with `bash -c 'source scripts/ci/build.sh; bazel_build output/ci'` and checking output/ci for the installer. -- MOS_MIGRATED_REVID=104647177 --- scripts/ci/build.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/ci/build.sh b/scripts/ci/build.sh index 2dd14e5da4..a73012e4e4 100755 --- a/scripts/ci/build.sh +++ b/scripts/ci/build.sh @@ -157,7 +157,7 @@ function bazel_build() { ${BUILD_SCRIPT_PATH} ${BAZEL_COMPILE_TARGET:-all} || retCode=$? # Exit for failure except for test failures (exit code 3). - if (( $retCode != 3 )); then + if (( $retCode != 0 && $retCode != 3 )); then exit $retCode fi -- cgit v1.2.3