Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDavid Williams2013-02-18 23:06:09 +0000
committerDavid Williams2013-02-18 23:06:09 +0000
commite1f37bbab4447e1c789c0730322da58f5fa4ae8e (patch)
treeed1f5933d7844773ed585ac8c2c2fed1f1cd800f /production/run-maven-build.sh
parentc0d725dbbf6e6f0174825f4790f1415cde27ab9b (diff)
downloadeclipse.platform.releng.aggregator-e1f37bbab4447e1c789c0730322da58f5fa4ae8e.tar.gz
eclipse.platform.releng.aggregator-e1f37bbab4447e1c789c0730322da58f5fa4ae8e.tar.xz
eclipse.platform.releng.aggregator-e1f37bbab4447e1c789c0730322da58f5fa4ae8e.zip
Bug 400633 - Need to exit build on (bad) errors and send mail (prep)
Diffstat (limited to 'production/run-maven-build.sh')
-rw-r--r--production/run-maven-build.sh2
1 files changed, 2 insertions, 0 deletions
diff --git a/production/run-maven-build.sh b/production/run-maven-build.sh
index 7c632acb..40562cfe 100644
--- a/production/run-maven-build.sh
+++ b/production/run-maven-build.sh
@@ -56,9 +56,11 @@ elif [[ "${exitCode}" =~ ^-?[0-9]+$ ]]
then
echo "exitcode was a legal, non-zero numeric return code"
exitrc=$exitCode
+ grep "\[ERROR\]" "${run-maven-build-log}" >> "${buildDirectory}/buildFailed-$( basename $0)"
else
echo "exitode was not numeric, so will force to 1"
exitrc=1
fi
+
echo "$( basename $0) exiting with exitrc: $exitrc"
exit $exitrc

Back to the top