Browse code

Jenkinsfile: collect junit.xml for all architectures

Jenkins groups them per stage, so collecting them for all architectures
is possible (without them conflicting or becoming ambiguous)

Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
(cherry picked from commit e2f5b78e780f2ad0d69f7abdfdada17a0ff66bb2)
Signed-off-by: Sebastiaan van Stijn <github@gone.nl>

Sebastiaan van Stijn authored on 2019/08/11 22:15:55
Showing 1 changed files
... ...
@@ -335,6 +335,11 @@ pipeline {
335 335
                                   hack/test/unit
336 336
                                 '''
337 337
                             }
338
+                            post {
339
+                                always {
340
+                                    junit testResults: 'bundles/junit-report.xml', allowEmptyResults: true
341
+                                }
342
+                            }
338 343
                         }
339 344
                         stage("Integration tests") {
340 345
                             environment { TEST_SKIP_INTEGRATION_CLI = '1' }
... ...
@@ -496,6 +501,11 @@ pipeline {
496 496
                                   hack/test/unit
497 497
                                 '''
498 498
                             }
499
+                            post {
500
+                                always {
501
+                                    junit testResults: 'bundles/junit-report.xml', allowEmptyResults: true
502
+                                }
503
+                            }
499 504
                         }
500 505
                         stage("Integration tests") {
501 506
                             environment { TEST_SKIP_INTEGRATION_CLI = '1' }