Browse code

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>

Sebastiaan van Stijn authored on 2019/08/11 22:12:59
Showing 1 changed files
... ...
@@ -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'