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 7f9328ad2e4f2c8aecac9a69f21616943711dc64)
Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
| ... | ... |
@@ -121,6 +121,11 @@ pipeline {
|
| 121 | 121 |
hack/test/unit |
| 122 | 122 |
''' |
| 123 | 123 |
} |
| 124 |
+ post {
|
|
| 125 |
+ always {
|
|
| 126 |
+ junit testResults: 'bundles/junit-report.xml', allowEmptyResults: true |
|
| 127 |
+ } |
|
| 128 |
+ } |
|
| 124 | 129 |
} |
| 125 | 130 |
stage("Validate vendor") {
|
| 126 | 131 |
steps {
|
| ... | ... |
@@ -164,7 +169,6 @@ pipeline {
|
| 164 | 164 |
''' |
| 165 | 165 |
|
| 166 | 166 |
archiveArtifacts artifacts: 'unit-bundles.tar.gz' |
| 167 |
- junit testResults: 'bundles/junit-report.xml', allowEmptyResults: true |
|
| 168 | 167 |
} |
| 169 | 168 |
cleanup {
|
| 170 | 169 |
sh 'make clean' |