remove some print on deploy job method

This commit is contained in:
Roberto Cirillo 2023-03-08 17:04:38 +01:00
parent f44949695f
commit a0ff479a1b
1 changed files with 0 additions and 8 deletions

8
Jenkinsfile vendored
View File

@ -273,14 +273,6 @@ def deploy(String service, String version, String host){
def now = new Date();
println("Going to deploy the service "+service+" with version: "+version+" on target: "+host);
def statusCode = sh( script: "cd $ANSIBLE_ROOT_FOLDER;./deployService.sh $service $version $host;", returnStdout: true);
sh("""
echo " last exit code \$?";
""")
println("Deploy ended with status: "+statusCode);
if (statusCode > 0){
currentBuild.buildResult= 'UNSTABLE'
error("Ansible run failed with the following statusCode "+statusCode)
}
}
//Implement a new method in order to check the input parameters