Skip to content

Commit

Permalink
JUnit step
Browse files Browse the repository at this point in the history
  • Loading branch information
v1v committed Nov 2, 2020
1 parent cff13dc commit 83bd560
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion Jenkinsfile
Original file line number Diff line number Diff line change
Expand Up @@ -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}"
Expand Down

0 comments on commit 83bd560

Please sign in to comment.