mirror of
https://github.com/eclipse-sailing-analytics/sailing-analytics.git
synced 2026-10-04 03:13:49 +00:00
Getting maven exit code correctly
This commit is contained in:
1 parent
8fd79423ae
commit
e09bb5e279
1 file changed
+1
-2
@@ -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
|
||||
|
||||
Reference in new issue
Block a user