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 <andrewhsu@docker.com>
(cherry picked from commit 0cfc1ec2bd)
Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
This commit is contained in:
Andrew Hsu 2019-08-09 23:31:13 +00:00 committed by Sebastiaan van Stijn
parent 55b938cb98
commit 9ccba2faf1
No known key found for this signature in database
GPG key ID: 76698F39D527CE8C

2
Jenkinsfile vendored
View file

@ -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'