mirror of
https://github.com/eclipse-sailing-analytics/sailing-analytics.git
synced 2026-10-06 12:23:55 +00:00
fixed passing through of mvn exit status
This commit is contained in:
1 parent
447ac28498
commit
a2675fd4ec
1 file changed
+2
-1
@@ -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
|
||||
|
||||
Reference in new issue
Block a user