Skip to content

Commit

Permalink
NIFI-9749 - Capture additional logging for system-test workflow runs
Browse files Browse the repository at this point in the history
This closes apache#5827

Signed-off-by: David Handermann <[email protected]>
  • Loading branch information
greyp9 authored and exceptionfactory committed Mar 3, 2022
1 parent 272f412 commit 6bc8515
Show file tree
Hide file tree
Showing 3 changed files with 22 additions and 4 deletions.
14 changes: 10 additions & 4 deletions .github/workflows/system-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -82,11 +82,14 @@ jobs:
${{ env.MAVEN_RUN_ARGUMENTS }}
${{ env.MAVEN_PROJECTS }}
- name: Upload Troubleshooting Logs
if: ${{ failure() }}
if: failure() || cancelled()
uses: actions/upload-artifact@v2
with:
name: ubuntu-latest-troubleshooting-logs
path: "**/target/troubleshooting/"
path: |
nifi-system-tests/nifi-system-test-suite/target/failsafe-reports/**/*.txt
nifi-system-tests/nifi-system-test-suite/target/surefire-reports/**/*.txt
nifi-system-tests/nifi-system-test-suite/target/troubleshooting/**/*
retention-days: 7

macos:
Expand Down Expand Up @@ -126,9 +129,12 @@ jobs:
${{ env.MAVEN_RUN_ARGUMENTS }}
${{ env.MAVEN_PROJECTS }}
- name: Upload Troubleshooting Logs
if: ${{ failure() }}
if: failure() || cancelled()
uses: actions/upload-artifact@v2
with:
name: macos-latest-troubleshooting-logs
path: "**/target/troubleshooting/"
path: |
nifi-system-tests/nifi-system-test-suite/target/failsafe-reports/**/*.txt
nifi-system-tests/nifi-system-test-suite/target/surefire-reports/**/*.txt
nifi-system-tests/nifi-system-test-suite/target/troubleshooting/**/*
retention-days: 7
6 changes: 6 additions & 0 deletions nifi-system-tests/nifi-stateless-system-test-suite/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -153,6 +153,12 @@

<build>
<plugins>
<plugin>
<artifactId>maven-failsafe-plugin</artifactId>
<configuration>
<redirectTestOutputToFile>true</redirectTestOutputToFile>
</configuration>
</plugin>
<plugin>
<artifactId>maven-assembly-plugin</artifactId>
<configuration>
Expand Down
6 changes: 6 additions & 0 deletions nifi-system-tests/nifi-system-test-suite/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,12 @@

<build>
<plugins>
<plugin>
<artifactId>maven-failsafe-plugin</artifactId>
<configuration>
<redirectTestOutputToFile>true</redirectTestOutputToFile>
</configuration>
</plugin>
<plugin>
<artifactId>maven-assembly-plugin</artifactId>
<configuration>
Expand Down

0 comments on commit 6bc8515

Please sign in to comment.