Make build fail on test failure

This commit is contained in:
Flare Microsystems
2024-11-08 19:36:26 -08:00
parent 1ffd4fdbe6
commit 98c00fc1c0
3 changed files with 6 additions and 2 deletions

4
Jenkinsfile vendored
View File

@@ -14,6 +14,10 @@ pipeline {
steps {
sh "$ANT_HOME/bin/ant test"
junit 'reports/*.xml'
script{
if (currentBuild.result == 'UNSTABLE')
currentBuild.result = 'FAILURE'
}
}
}
stage('Package'){