This is an automated email from the ASF dual-hosted git repository.

chesnay pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/flink.git

commit 3e5eca702d264d87964022c6cebe7dc95fbd8f9b
Author: Chesnay Schepler <ches...@apache.org>
AuthorDate: Thu Aug 17 11:29:11 2023 +0200

    [FLINK-32834] Forward actual Maven error code instead of 1
---
 tools/ci/verify_bundled_optional.sh |  4 ++--
 tools/ci/verify_scala_suffixes.sh   | 14 +++++++-------
 2 files changed, 9 insertions(+), 9 deletions(-)

diff --git a/tools/ci/verify_bundled_optional.sh 
b/tools/ci/verify_bundled_optional.sh
index 890b1a5acf5..276d95eb634 100755
--- a/tools/ci/verify_bundled_optional.sh
+++ b/tools/ci/verify_bundled_optional.sh
@@ -56,7 +56,7 @@ if [ $EXIT_CODE != 0 ]; then
     echo 
"=============================================================================="
     echo "Optional Check failed. The dependency tree could not be determined. 
See previous output for details."
     echo 
"=============================================================================="
-    exit 1
+    exit $EXIT_CODE
 fi
 
 cat "${dependency_plugin_output}"
@@ -68,7 +68,7 @@ if [ $EXIT_CODE != 0 ]; then
     echo 
"=============================================================================="
     echo "Optional Check failed. See previous output for details."
     echo 
"=============================================================================="
-    exit 1
+    exit $EXIT_CODE
 fi
 
 exit 0
diff --git a/tools/ci/verify_scala_suffixes.sh 
b/tools/ci/verify_scala_suffixes.sh
index 45fca80a842..9747066b4c8 100755
--- a/tools/ci/verify_scala_suffixes.sh
+++ b/tools/ci/verify_scala_suffixes.sh
@@ -71,18 +71,18 @@ if [ $EXIT_CODE != 0 ]; then
     echo 
"=============================================================================="
     echo "Suffix Check failed. The dependency tree could not be determined. 
See previous output for details."
     echo 
"=============================================================================="
-    exit 1
+    exit $EXIT_CODE
 fi
 
 $MVN -pl tools/ci/flink-ci-tools exec:java exec:java 
-Dexec.mainClass=org.apache.flink.tools.ci.suffixcheck.ScalaSuffixChecker 
-Dexec.args="${dependency_plugin_output} $(pwd)"
 EXIT_CODE=$?
 
-if [ $EXIT_CODE == 0 ]; then
-    exit 0
+if [ $EXIT_CODE != 0 ]; then
+    echo 
"=============================================================================="
+    echo "Suffix Check failed. See previous output for details."
+    echo 
"=============================================================================="
+    exit $EXIT_CODE
 fi
 
-echo 
"=============================================================================="
-echo "Suffix Check failed. See previous output for details."
-echo 
"=============================================================================="
-exit 1
+exit 0
 

Reply via email to