You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@qpid.apache.org by ro...@apache.org on 2021/12/14 14:31:15 UTC
[qpid-jms] 07/16: NO-JIRA: try to upload archive of surefire logs upon failure
This is an automated email from the ASF dual-hosted git repository.
robbie pushed a commit to branch 0.x
in repository https://gitbox.apache.org/repos/asf/qpid-jms.git
commit 4ca8a1fdb586367795bdcf6d0f94072ec5e19e99
Author: Robbie Gemmell <ro...@apache.org>
AuthorDate: Mon Jul 12 12:43:36 2021 +0100
NO-JIRA: try to upload archive of surefire logs upon failure
(cherry picked from commit 26350ae2374cd031f5f0f9bd8d83db9e422412bf)
---
.github/workflows/build.yml | 11 +++++++++++
1 file changed, 11 insertions(+)
diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml
index 71198f8..900d8f3 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-unsubscribe@qpid.apache.org
For additional commands, e-mail: commits-help@qpid.apache.org