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