Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion .github/workflows/main-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,9 @@ jobs:
if: always()
with:
name: main-build-${{ matrix.java }}.log
path: build.log
path: |
build-regen.log
build-regen-catalog.log
- name: Save Atlassian Maven Cache
uses: actions/cache/save@55cc8345863c7cc4c66a329aec7e433d2d1c52a9 # v6.1.0
if: always()
Expand Down
5 changes: 4 additions & 1 deletion .github/workflows/pr-build-main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,10 @@ jobs:
if: always()
with:
name: build-${{ matrix.java }}.log
path: build.log
path: |
build.log
build-regen.log
build-regen-catalog.log
- name: Save Atlassian Maven Cache
uses: actions/cache/save@55cc8345863c7cc4c66a329aec7e433d2d1c52a9 # v6.1.0
if: always()
Expand Down
14 changes: 7 additions & 7 deletions etc/scripts/regen.sh
Original file line number Diff line number Diff line change
Expand Up @@ -22,23 +22,23 @@ set -e
cd `dirname "$0"`/../..

# Force clean
git clean -fdx
git clean -fd
rm -Rf **/src/generated/

# Regenerate everything
if ./mvnw --batch-mode -Pregen -DskipTests ${MAVEN_EXTRA_ARGS} install >> build.log 2>&1; then
if ./mvnw -T1C --batch-mode -Pregen -DskipTests ${MAVEN_EXTRA_ARGS} install > build-regen.log 2>&1; then
echo "✅ mvn -Pregen succeeded."
else
echo "❌ mvn -Pregen failed. Last 50 lines of build.log:"
tail -n 50 build.log
echo "❌ mvn -Pregen failed. Last 50 lines of build-regen.log:"
tail -n 50 build-regen.log
exit 1
fi

# One additional pass to get the info for the 'others' jars
if ./mvnw --batch-mode ${MAVEN_EXTRA_ARGS} install -f catalog/camel-catalog >> build.log 2>&1; then
if ./mvnw --batch-mode ${MAVEN_EXTRA_ARGS} install -f catalog/camel-catalog > build-regen-catalog.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
echo "❌ mvn install for camel-catalog failed. Last 50 lines of build-regen-catalog.log:"
tail -n 50 build-regen-catalog.log
exit 1
fi