From b27c227a7684d18ab2db7a2b7424206d8acf3e2e Mon Sep 17 00:00:00 2001 From: Guillaume Smet Date: Fri, 15 Oct 2021 11:14:39 +0200 Subject: [PATCH] CI - Clean the Gradle temp directory Hopefully, this will fix the errors we have when trying to upload artifacts. --- .github/workflows/ci-actions-incremental.yml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.github/workflows/ci-actions-incremental.yml b/.github/workflows/ci-actions-incremental.yml index 35b86669cf258..f802fdf827bb4 100644 --- a/.github/workflows/ci-actions-incremental.yml +++ b/.github/workflows/ci-actions-incremental.yml @@ -305,6 +305,9 @@ jobs: shell: bash # Despite the pre-calculated run_jvm flag, GIB has to be re-run here to figure out the exact submodules to build. run: ./mvnw $COMMON_MAVEN_ARGS install -Dsurefire.timeout=1200 -pl !integration-tests/gradle -pl !integration-tests/maven -pl !integration-tests/devtools ${{ matrix.java.maven_args }} ${{ needs.build-jdk11.outputs.gib_args }} + - name: Clean Gradle temp directory + shell: bash + run: devtools/gradle/gradlew --stop && rm -rf devtools/gradle/gradle-extension-plugin/build/tmp - name: Prepare failure archive (if maven failed) if: failure() shell: bash @@ -327,7 +330,6 @@ jobs: retention-days: 2 - name: Upload gc.log uses: actions/upload-artifact@v2 - if: failure() with: name: "GC log - JDK ${{matrix.java.name}}" path: |