add exit to deploy script

This commit is contained in:
Roberto Cirillo 2024-10-30 11:31:43 +01:00
parent 4728bd16b9
commit cf0ea75460
1 changed files with 1 additions and 0 deletions

1
Jenkinsfile vendored
View File

@ -356,6 +356,7 @@ def deploy(String service, String version, String host, String foo){
println("Deploy statusCode value: "+statusCode);
if (statusCode != 0){
currentBuild.result = 'FAILURE'
exit statusCode;
}
}