In case a job fails before even generating a report file.
Signed-off-by: Andrew Hsu <andrewhsu@docker.com>
| ... | ... |
@@ -148,7 +148,6 @@ pipeline {
|
| 148 | 148 |
|
| 149 | 149 |
post {
|
| 150 | 150 |
always {
|
| 151 |
- junit 'bundles/junit-report.xml' |
|
| 152 | 151 |
sh ''' |
| 153 | 152 |
echo 'Ensuring container killed.' |
| 154 | 153 |
docker rm -vf docker-pr$BUILD_NUMBER || true |
| ... | ... |
@@ -165,6 +164,7 @@ pipeline {
|
| 165 | 165 |
''' |
| 166 | 166 |
|
| 167 | 167 |
archiveArtifacts artifacts: 'unit-bundles.tar.gz' |
| 168 |
+ junit testResults: 'bundles/junit-report.xml', allowEmptyResults: true |
|
| 168 | 169 |
} |
| 169 | 170 |
cleanup {
|
| 170 | 171 |
sh 'make clean' |