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

pcongiusti pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/camel.git

commit d0bf3eb2c33fa9b65b40b41c3acb9a6fb4ed110e
Author: Pasquale Congiusti <[email protected]>
AuthorDate: Thu Sep 18 14:25:52 2025 +0200

    chore(ci): put short failing resume
    
    This would avoid the developer to download the build log file in case of 
error. He can now have a sneak peak at the workflow log to understand what was 
wrong.
---
 etc/scripts/regen.sh | 17 +++++++++++++++--
 1 file changed, 15 insertions(+), 2 deletions(-)

diff --git a/etc/scripts/regen.sh b/etc/scripts/regen.sh
index b28a2d442d9..57eb8aab836 100755
--- a/etc/scripts/regen.sh
+++ b/etc/scripts/regen.sh
@@ -26,6 +26,19 @@ git clean -fdx
 rm -Rf **/src/generated/
 
 # Regenerate everything
-./mvnw --batch-mode -Pregen -DskipTests install >> build.log 2>&1
+if ./mvnw --batch-mode -Pregen -DskipTests install >> build.log 2>&1; then
+  echo "✅ mvn -Pregen succeeded."
+else
+  echo "❌ mvn -Pregen failed. Last 50 lines of build.log:"
+  tail -n 50 build.log
+  exit 1
+fi
+
 # One additional pass to get the info for the 'others' jars
-./mvnw --batch-mode install -f catalog/camel-catalog >> build.log 2>&1
+if ./mvnw --batch-mode install -f catalog/camel-catalog >> build.log 2>&1; then
+  echo "✅ mvn install for camel-catalog succeeded."
+else
+  echo "❌ mvn install for camel-catalog failed. Last 50 lines of build.log:"
+  tail -n 50 build.log
+  exit 1
+fi

Reply via email to