Skip to content

Commit

Permalink
ci: fix test/test-testsuite targets output parsing
Browse files Browse the repository at this point in the history
Prevent tparse from breaking by filtering non-JSON lines (it works! and
has no drawbacks, I think?).

Change-Id: I8b17d7c240e77950d800fd3c1f16e15ef60f79d6
  • Loading branch information
amwolff authored and Storj Robot committed Jul 10, 2023
1 parent 74654d9 commit 8438de3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Jenkinsfile
Expand Up @@ -88,7 +88,7 @@ pipeline {
STORJ_TEST_LOG_LEVEL = 'info'
}
steps {
sh 'make test 2>&1 | tee .build/tests.json | xunit -out .build/tests.xml'
sh 'make test 2>&1 | grep "^{.*" | tee .build/tests.json | xunit -out .build/tests.xml'
}
post {
always {
Expand All @@ -115,7 +115,7 @@ pipeline {
}
post {
always {
sh script: 'cat .build/testsuite.json | tparse -all -top -slow 100', returnStatus: true
sh script: 'cat .build/testsuite.json | grep "^{.*" | tparse -all -top -slow 100', returnStatus: true
archiveArtifacts artifacts: '.build/testsuite.json'
junit '.build/testsuite.xml'
}
Expand Down

0 comments on commit 8438de3

Please sign in to comment.