Make build fail on test failure
This commit is contained in:
4
Jenkinsfile
vendored
4
Jenkinsfile
vendored
@@ -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'){
|
||||
|
||||
Reference in New Issue
Block a user