From 5017e1b9ec42294bf78534a651fed6ec76563afe Mon Sep 17 00:00:00 2001 From: Flare Microsystems Date: Fri, 8 Nov 2024 19:41:00 -0800 Subject: [PATCH] Fail on test failure --- Jenkinsfile | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Jenkinsfile b/Jenkinsfile index aa0aef4..75ec45e 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -16,7 +16,10 @@ pipeline { junit 'reports/*.xml' script{ if (currentBuild.result == 'UNSTABLE') + { currentBuild.result = 'FAILURE' + error('Tests failed, failing the build!') + } } } }