fixed passing through of mvn exit status

This commit is contained in:
Axel Uhl committed 2014-01-30 19:03:25 +01:00
1 parent 447ac28498
commit a2675fd4ec
1 file changed
+2 -1
+2 -1
View File
@@ -480,7 +480,8 @@ 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; export MVN_EXIT_CODE=$?) 2>&1 | tee $START_DIR/build.log
(mvn $extra -DargLine="$APP_PARAMETERS" -fae -s $MAVEN_SETTINGS $clean install; echo 'MVN_EXIT_CODE=$?') 2>&1 | tee $START_DIR/build.log
eval `grep MVN_EXIT_CODE= $START_DIR/build.log`
echo "Maven exit code is $MVN_EXIT_CODE"
if [ $reporting -eq 1 ]; then