Getting maven exit code correctly

This commit is contained in:
Simon Pamies committed 2014-01-29 17:50:04 +01:00
1 parent 8fd79423ae
commit e09bb5e279
1 file changed
+1 -2
+1 -2
View File
@@ -480,8 +480,7 @@ if [[ "$@" == "build" ]] || [[ "$@" == "all" ]]; then
echo "Using following command: mvn $extra -DargLine=\"$APP_PARAMETERS\" -fae -s $MAVEN_SETTINGS $clean install"
echo "Maven version used: `mvn --version`"
mvn $extra -DargLine="$APP_PARAMETERS" -fae -s $MAVEN_SETTINGS $clean install 2>&1 | tee $START_DIR/build.log
MVN_EXIT_CODE=$?
(mvn $extra -DargLine="$APP_PARAMETERS" -fae -s $MAVEN_SETTINGS $clean install; export MVN_EXIT_CODE=$?) 2>&1 | tee $START_DIR/build.log
echo "Maven exit code is $MVN_EXIT_CODE"
if [ $reporting -eq 1 ]; then