Fail on test failure
This commit is contained in:
3
Jenkinsfile
vendored
3
Jenkinsfile
vendored
@@ -16,7 +16,10 @@ pipeline {
|
||||
junit 'reports/*.xml'
|
||||
script{
|
||||
if (currentBuild.result == 'UNSTABLE')
|
||||
{
|
||||
currentBuild.result = 'FAILURE'
|
||||
error('Tests failed, failing the build!')
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user