From f71910904eac3b8c145dd3a1283f328ee7752df8 Mon Sep 17 00:00:00 2001 From: Guillaume Smet Date: Tue, 24 May 2022 09:58:38 +0200 Subject: [PATCH] Upload build.log to debug enforcer rules issue (cherry picked from commit b773d15d2bb932889666245e1f5ea8eaff9c2ab1) --- .github/workflows/ci-actions-incremental.yml | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/.github/workflows/ci-actions-incremental.yml b/.github/workflows/ci-actions-incremental.yml index 2f8a88f3d2350..36aa09116f793 100644 --- a/.github/workflows/ci-actions-incremental.yml +++ b/.github/workflows/ci-actions-incremental.yml @@ -343,6 +343,14 @@ jobs: **/windows-java-11.txt !**/build/tmp/** retention-days: 5 + - name: Upload build.log (if build failed) + uses: actions/upload-artifact@v2 + if: ${{ failure() || cancelled() }} + with: + name: "build-logs-JVM Tests - JDK ${{matrix.java.name}}" + path: | + **/build.log + retention-days: 2 maven-tests: name: Maven Tests - JDK ${{matrix.java.name}}