small fix

This commit is contained in:
Roberto Cirillo 2024-10-30 10:44:48 +01:00
parent ecc8b71cbe
commit 4728bd16b9
1 changed files with 8 additions and 7 deletions

15
Jenkinsfile vendored
View File

@ -350,14 +350,15 @@ def deploy(String service, String version, String host, String foo){
git pull;
""")
def statusCode = sh( script: "./deployService.sh $service $version $host $foo;", returnStatus: true);
sh("""
echo " last exit code \$?";
""")
println("Deploy statusCode value: "+statusCode);
if (statusCode != 0){
currentBuild.result = 'FAILURE'
}
}
sh("""
echo " last exit code \$?";
""")
println("Deploy statusCode value: "+statusCode);
if (statusCode != 0){
currentBuild.result = 'FAILURE'
}
}