generated from gCubeCI/Pipeline-Docker-Template
add error call in order to stop the whole pipeline if an error occur
This commit is contained in:
parent
d9f0f75853
commit
85a0212959
|
@ -279,6 +279,7 @@ def deploy(String service, String version, String host){
|
|||
println("Deploy ended with status: "+statusCode);
|
||||
if (statusCode > 0){
|
||||
currentBuild.buildResult= 'FAILURE'
|
||||
error("Ansible run failed with the following statusCode "+statusCode)
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue