diff --git a/Jenkinsfile b/Jenkinsfile index be20b1021..11f25b2dd 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -75,16 +75,12 @@ pipeline { steps { sh 'npm run test:unit:ci' } - post { + post { always { - script { - try { - junit 'junitresults.xml' - junit 'junit.xml' - } catch (e) { - echo e.toString() - } - } + junit( + testResults: 'junitresults.xml', + allowEmptyResults: true + ) } } }