From a0ff479a1b9c223df32ba7b77d68043b5cf1b2dc Mon Sep 17 00:00:00 2001 From: Roberto Cirillo Date: Wed, 8 Mar 2023 17:04:38 +0100 Subject: [PATCH] remove some print on deploy job method --- Jenkinsfile | 8 -------- 1 file changed, 8 deletions(-) diff --git a/Jenkinsfile b/Jenkinsfile index 01ce0c4..1ead091 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -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