Pārlūkot izejas kodu

Jenkinsfile: windows-1903: send junit.xml results

Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
Sebastiaan van Stijn 5 gadi atpakaļ
vecāks
revīzija
0100a9ebc1
1 mainītis faili ar 2 papildinājumiem un 1 dzēšanām
  1. 2 1
      Jenkinsfile

+ 2 - 1
Jenkinsfile

@@ -1212,6 +1212,7 @@ pipeline {
                     }
                     }
                     post {
                     post {
                         always {
                         always {
+                            junit testResults: 'bundles/junit-report-*.xml', allowEmptyResults: true
                             catchError(buildResult: 'SUCCESS', stageResult: 'FAILURE', message: 'Failed to create bundles.zip') {
                             catchError(buildResult: 'SUCCESS', stageResult: 'FAILURE', message: 'Failed to create bundles.zip') {
                                 powershell '''
                                 powershell '''
                                 cd $env:WORKSPACE
                                 cd $env:WORKSPACE
@@ -1219,7 +1220,7 @@ pipeline {
                                 Write-Host -ForegroundColor Green "Creating ${bundleName}-bundles.zip"
                                 Write-Host -ForegroundColor Green "Creating ${bundleName}-bundles.zip"
 
 
                                 # archiveArtifacts does not support env-vars to , so save the artifacts in a fixed location
                                 # archiveArtifacts does not support env-vars to , so save the artifacts in a fixed location
-                                Compress-Archive -Path "bundles/CIDUT.out", "bundles/CIDUT.err", -CompressionLevel Optimal -DestinationPath "${bundleName}-bundles.zip"
+                                Compress-Archive -Path "bundles/CIDUT.out", "bundles/CIDUT.err", "bundles/junit-report-*.xml" -CompressionLevel Optimal -DestinationPath "${bundleName}-bundles.zip"
                                 '''
                                 '''
 
 
                                 archiveArtifacts artifacts: '*-bundles.zip', allowEmptyArchive: true
                                 archiveArtifacts artifacts: '*-bundles.zip', allowEmptyArchive: true