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:
parent
9b25c0fb25
commit
7f9328ad2e
1 changed files with 5 additions and 1 deletions
6
Jenkinsfile
vendored
6
Jenkinsfile
vendored
|
@ -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'
|
||||
|
|
Loading…
Reference in a new issue