diff --git a/Jenkinsfile b/Jenkinsfile index 1b23291960..34f367eff4 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -25,7 +25,11 @@ stage('Build') { } stage('Test') { - powershell './make.ps1 test' + def windowsTestStatus = powershell('./make.ps1 test', returnStatus: true) + junit(allowEmptyResults: true, keepLongStdio: true, testResults: 'target/**/junit-results.xml') + if (windowsTestStatus > 0) { + error('Windows test stage failed.') + } } def branchName = "${env.BRANCH_NAME}"