Jenkinsfile: windows-1903: send junit.xml results
Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
This commit is contained in:
parent
fa194ec86c
commit
0100a9ebc1
1 changed files with 2 additions and 1 deletions
3
Jenkinsfile
vendored
3
Jenkinsfile
vendored
|
@ -1212,6 +1212,7 @@ pipeline {
|
|||
}
|
||||
post {
|
||||
always {
|
||||
junit testResults: 'bundles/junit-report-*.xml', allowEmptyResults: true
|
||||
catchError(buildResult: 'SUCCESS', stageResult: 'FAILURE', message: 'Failed to create bundles.zip') {
|
||||
powershell '''
|
||||
cd $env:WORKSPACE
|
||||
|
@ -1219,7 +1220,7 @@ pipeline {
|
|||
Write-Host -ForegroundColor Green "Creating ${bundleName}-bundles.zip"
|
||||
|
||||
# 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
|
||||
|
|
Loading…
Add table
Reference in a new issue