Переглянути джерело

Merge pull request #39719 from thaJeztah/junit_all_stages

Jenkinsfile: collect junit.xml for all architectures
Tibor Vass 6 роки тому
батько
коміт
a176d30c54
1 змінених файлів з 15 додано та 1 видалено
  1. 15 1
      Jenkinsfile

+ 15 - 1
Jenkinsfile

@@ -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'
@@ -331,6 +335,11 @@ pipeline {
                                   hack/test/unit
                                 '''
                             }
+                            post {
+                                always {
+                                    junit testResults: 'bundles/junit-report.xml', allowEmptyResults: true
+                                }
+                            }
                         }
                         stage("Integration tests") {
                             environment { TEST_SKIP_INTEGRATION_CLI = '1' }
@@ -492,6 +501,11 @@ pipeline {
                                   hack/test/unit
                                 '''
                             }
+                            post {
+                                always {
+                                    junit testResults: 'bundles/junit-report.xml', allowEmptyResults: true
+                                }
+                            }
                         }
                         stage("Integration tests") {
                             environment { TEST_SKIP_INTEGRATION_CLI = '1' }