1
0
Fork 0
mirror of https://github.com/moby/moby.git synced 2022-11-09 12:21:53 -05:00

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>
(cherry picked from commit 7f9328ad2e)
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 e6b49956d8
commit c243ffaa06
No known key found for this signature in database
GPG key ID: 76698F39D527CE8C

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'