Jenkinsfile: send junit.xml in the stage that produced it

This will send the results directly after the tests complete,
and make the stage more atomic.

Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
This commit is contained in:
Sebastiaan van Stijn 2019-08-11 15:12:59 +02:00
parent 9b25c0fb25
commit 7f9328ad2e
No known key found for this signature in database
GPG Key ID: 76698F39D527CE8C
1 changed files with 5 additions and 1 deletions

6
Jenkinsfile vendored
View File

@ -121,6 +121,11 @@ pipeline {
hack/test/unit
'''
}
post {
always {
junit testResults: 'bundles/junit-report.xml', allowEmptyResults: true
}
}
}
stage("Validate vendor") {
steps {
@ -164,7 +169,6 @@ pipeline {
'''
archiveArtifacts artifacts: 'unit-bundles.tar.gz'
junit testResults: 'bundles/junit-report.xml', allowEmptyResults: true
}
cleanup {
sh 'make clean'