Fail on test failure

This commit is contained in:
Flare Microsystems
2024-11-08 19:41:00 -08:00
parent 46f85ea8c1
commit 5017e1b9ec

3
Jenkinsfile vendored
View File

@@ -16,7 +16,10 @@ pipeline {
junit 'reports/*.xml'
script{
if (currentBuild.result == 'UNSTABLE')
{
currentBuild.result = 'FAILURE'
error('Tests failed, failing the build!')
}
}
}
}