From 504ea7b5fb67037c5fd57c8e149a88fc5a5a21b7 Mon Sep 17 00:00:00 2001 From: alexm Date: Tue, 27 Feb 2024 09:39:19 +0100 Subject: [PATCH] refs #6797 warmFix: jenkinsfile --- Jenkinsfile | 14 +++++--------- 1 file changed, 5 insertions(+), 9 deletions(-) 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 + ) } } }