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