Skip to content

Commit

Permalink
[FLINK-32834] Fail early if dependency plugin fails
Browse files Browse the repository at this point in the history
  • Loading branch information
zentol committed Aug 17, 2023
1 parent ed31bca commit 6663b39
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions tools/ci/verify_bundled_optional.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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}"

Expand Down

0 comments on commit 6663b39

Please sign in to comment.