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 6663b3982444a3ee3c67e68289b24b31aac15c02
Author: Chesnay Schepler <ches...@apache.org>
AuthorDate: Wed Aug 16 13:02:41 2023 +0200

    [FLINK-32834] Fail early if dependency plugin fails
---
 tools/ci/verify_bundled_optional.sh | 9 +++++++++
 1 file changed, 9 insertions(+)

diff --git a/tools/ci/verify_bundled_optional.sh 
b/tools/ci/verify_bundled_optional.sh
index 0d3dbdf41ba..890b1a5acf5 100755
--- a/tools/ci/verify_bundled_optional.sh
+++ b/tools/ci/verify_bundled_optional.sh
@@ -49,6 +49,15 @@ MVN=${MVN:-./mvnw}
 dependency_plugin_output=/tmp/optional_dep.txt
 
 $MVN dependency:tree -B > "${dependency_plugin_output}"
+EXIT_CODE=$?
+
+if [ $EXIT_CODE != 0 ]; then
+    cat ${dependency_plugin_output}
+    echo 
"=============================================================================="
+    echo "Optional Check failed. The dependency tree could not be determined. 
See previous output for details."
+    echo 
"=============================================================================="
+    exit 1
+fi
 
 cat "${dependency_plugin_output}"
 

Reply via email to