From c9504d9623da03baa755ba934b2fdb241f4d8eb3 Mon Sep 17 00:00:00 2001 From: dhruv Date: Tue, 20 Aug 2024 21:49:59 +0530 Subject: [PATCH 1/2] added log generation/uploading Signed-off-by: dhruv --- .github/workflows/build.yaml | 15 +++++++++++---- .github/workflows/pr-build.yaml | 5 ++--- 2 files changed, 13 insertions(+), 7 deletions(-) diff --git a/.github/workflows/build.yaml b/.github/workflows/build.yaml index a3ea02baa..eb984060f 100644 --- a/.github/workflows/build.yaml +++ b/.github/workflows/build.yaml @@ -77,13 +77,13 @@ jobs: ORG_GRADLE_PROJECT_signingKey: ${{ secrets.GPG_KEY }} ORG_GRADLE_PROJECT_signingPassword: ${{ secrets.GPG_PASSPHRASE }} run: | - gradle -b galasa-parent/build.gradle check publish \ + gradle -b galasa-parent/build.gradle check publish --info \ -Dorg.gradle.jvmargs=-Xmx5120M \ -PsourceMaven=https://development.galasa.dev/${{ env.ARGO_APP_BRANCH }}/maven-repo/maven/ \ -PcentralMaven=https://repo.maven.apache.org/maven2/ \ -PtargetMaven=${{ github.workspace }}/repo \ -PjacocoEnabled=true \ - -PisMainOrRelease=true + -PisMainOrRelease=true 2>&1 | tee build.log - name: Build Framework source code if: github.event_name == 'workflow_dispatch' # Use the input values provided by the workflow dispatch. @@ -94,13 +94,20 @@ jobs: ORG_GRADLE_PROJECT_signingKey: ${{ secrets.GPG_KEY }} ORG_GRADLE_PROJECT_signingPassword: ${{ secrets.GPG_PASSPHRASE }} run: | - gradle -b galasa-parent/build.gradle check publish \ + gradle -b galasa-parent/build.gradle check publish --info \ -Dorg.gradle.jvmargs=-Xmx5120M \ -PsourceMaven=https://development.galasa.dev/${{ env.ARGO_APP_BRANCH }}/maven-repo/maven/ \ -PcentralMaven=https://repo.maven.apache.org/maven2/ \ -PtargetMaven=${{ github.workspace }}/repo \ -PjacocoEnabled=${{ inputs.jacocoEnabled }} \ - -PisMainOrRelease=${{ inputs.isMainOrRelease }} + -PisMainOrRelease=${{ inputs.isMainOrRelease }} 2>&1 | tee build.log + + - name: Upload Gradle Build Log + if: always() + uses: actions/upload-artifact@v4 + with: + name: gradle-build-log + path: build.log - name: Login to Github Container Registry uses: docker/login-action@v3 diff --git a/.github/workflows/pr-build.yaml b/.github/workflows/pr-build.yaml index 9494e20cf..b8cf3e2e0 100644 --- a/.github/workflows/pr-build.yaml +++ b/.github/workflows/pr-build.yaml @@ -42,12 +42,11 @@ jobs: - name: Build Framework source code run: | - gradle -b galasa-parent/build.gradle check publish \ + gradle -b galasa-parent/build.gradle check publish --info \ -Dorg.gradle.jvmargs=-Xmx5120M \ -PsourceMaven=https://development.galasa.dev/gh/maven-repo/maven/ \ -PcentralMaven=https://repo.maven.apache.org/maven2/ \ - -PtargetMaven=${{ github.workspace }}/repo \ - --info + -PtargetMaven=${{ github.workspace }}/repo - name: Build Framework image for testing uses: docker/build-push-action@v5 From a1ac232b54f6a600794e706033a192c00eddb155 Mon Sep 17 00:00:00 2001 From: dhruv Date: Tue, 20 Aug 2024 21:51:46 +0530 Subject: [PATCH 2/2] added log generation/uploading Signed-off-by: dhruv --- .github/workflows/build.yaml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.github/workflows/build.yaml b/.github/workflows/build.yaml index eb984060f..3284e6958 100644 --- a/.github/workflows/build.yaml +++ b/.github/workflows/build.yaml @@ -77,6 +77,7 @@ jobs: ORG_GRADLE_PROJECT_signingKey: ${{ secrets.GPG_KEY }} ORG_GRADLE_PROJECT_signingPassword: ${{ secrets.GPG_PASSPHRASE }} run: | + set -o pipefail gradle -b galasa-parent/build.gradle check publish --info \ -Dorg.gradle.jvmargs=-Xmx5120M \ -PsourceMaven=https://development.galasa.dev/${{ env.ARGO_APP_BRANCH }}/maven-repo/maven/ \ @@ -94,6 +95,7 @@ jobs: ORG_GRADLE_PROJECT_signingKey: ${{ secrets.GPG_KEY }} ORG_GRADLE_PROJECT_signingPassword: ${{ secrets.GPG_PASSPHRASE }} run: | + set -o pipefail gradle -b galasa-parent/build.gradle check publish --info \ -Dorg.gradle.jvmargs=-Xmx5120M \ -PsourceMaven=https://development.galasa.dev/${{ env.ARGO_APP_BRANCH }}/maven-repo/maven/ \