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

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


The following commit(s) were added to refs/heads/main by this push:
     new 3480336e035 (chores) ci: redirect outputs in script (#14458)
3480336e035 is described below

commit 3480336e035c16de15778675cdb5c163ce51d46b
Author: Nicolas Filotto <essob...@users.noreply.github.com>
AuthorDate: Tue Jun 11 10:10:32 2024 +0200

    (chores) ci: redirect outputs in script (#14458)
    
    ## Motivation
    
    The redirection of standard outputs is not supported by GitHub jobs so we 
don't get the log of builds.
    
    ## Modifications:
    
    * Move the redirection of the standard outputs in the build script
---
 .github/workflows/pr-build-main.yml | 6 +++---
 etc/scripts/regen.sh                | 4 ++--
 2 files changed, 5 insertions(+), 5 deletions(-)

diff --git a/.github/workflows/pr-build-main.yml 
b/.github/workflows/pr-build-main.yml
index b06898a0a5f..e018ab7d714 100644
--- a/.github/workflows/pr-build-main.yml
+++ b/.github/workflows/pr-build-main.yml
@@ -61,13 +61,13 @@ jobs:
           java-version: ${{ matrix.java }}
           cache: 'maven'
       - name: maven build
-        run: ./etc/scripts/regen.sh > build-${{ matrix.java }}.log 2>&1
+        run: ./etc/scripts/regen.sh
       - name: archive logs
         uses: actions/upload-artifact@v4
         if: always()
         with:
-          name: build.log
-          path: build-${{ matrix.java }}.log
+          name: build-${{ matrix.java }}.log
+          path: build.log
       - name: Fail if there are uncommitted changes
         shell: bash
         run: |
diff --git a/etc/scripts/regen.sh b/etc/scripts/regen.sh
index 0bff605af48..014839f1bd2 100755
--- a/etc/scripts/regen.sh
+++ b/etc/scripts/regen.sh
@@ -24,6 +24,6 @@ git clean -fdx
 rm -Rf **/src/generated/
 
 # Regenerate everything
-./mvnw --batch-mode -Pregen -DskipTests install
+./mvnw --batch-mode -Pregen -DskipTests install >> build.log 2>&1
 # One additional pass to get the info for the 'others' jars
-./mvnw --batch-mode install -f catalog/camel-catalog
+./mvnw --batch-mode install -f catalog/camel-catalog >> build.log 2>&1

Reply via email to