generated from gCubeCI/Pipeline-Docker-Template
remove some print on deploy job method
This commit is contained in:
parent
f44949695f
commit
a0ff479a1b
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue