Fail on test failure
This commit is contained in:
Vendored
+3
@@ -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