From 0cfc1ec2bdcdb94dcb60dfdfead86aa4aa737195 Mon Sep 17 00:00:00 2001 From: Andrew Hsu Date: Fri, 9 Aug 2019 23:31:13 +0000 Subject: [PATCH] be more lenient on junit report gathering in Jenkinsfile In case a job fails before even generating a report file. Signed-off-by: Andrew Hsu --- Jenkinsfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Jenkinsfile b/Jenkinsfile index f00a71feb7..cdca477489 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -148,7 +148,6 @@ pipeline { post { always { - junit 'bundles/junit-report.xml' sh ''' echo 'Ensuring container killed.' docker rm -vf docker-pr$BUILD_NUMBER || true @@ -165,6 +164,7 @@ pipeline { ''' archiveArtifacts artifacts: 'unit-bundles.tar.gz' + junit testResults: 'bundles/junit-report.xml', allowEmptyResults: true } cleanup { sh 'make clean'