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

robbie pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/qpid-jms.git


The following commit(s) were added to refs/heads/main by this push:
     new 26350ae  NO-JIRA: try to upload archive of surefire logs upon failure
26350ae is described below

commit 26350ae2374cd031f5f0f9bd8d83db9e422412bf
Author: Robbie Gemmell <rob...@apache.org>
AuthorDate: Mon Jul 12 12:43:36 2021 +0100

    NO-JIRA: try to upload archive of surefire logs upon failure
---
 .github/workflows/build.yml | 11 +++++++++++
 1 file changed, 11 insertions(+)

diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml
index b8a46e0..bae8ada 100644
--- a/.github/workflows/build.yml
+++ b/.github/workflows/build.yml
@@ -27,3 +27,14 @@ jobs:
 
       - name: Build
         run: mvn -B clean verify
+
+      - name: Archive Test Logs On Failure
+        if: failure()
+        run: tar -czvf surefire-reports-jdk-${{ matrix.java }}.tar.gz 
**/target/surefire-reports/*
+
+      - name: Upload Test Logs On Failure
+        if: failure()
+        uses: actions/upload-artifact@v2
+        with:
+          name: surefire-reports-jdk-${{ matrix.java }}
+          path: surefire-reports-jdk-${{ matrix.java }}.tar.gz

---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscr...@qpid.apache.org
For additional commands, e-mail: commits-h...@qpid.apache.org

Reply via email to