generated from gCubeCI/Pipeline-Docker-Template
fix print message
This commit is contained in:
parent
d56d1a693e
commit
ec7ae82e9b
|
@ -345,11 +345,15 @@ def deployJobs(def serviceList){
|
|||
def deploy(String service, String version, String host, String foo){
|
||||
def now = new Date();
|
||||
println("Going to deploy the service "+service+" with version: "+version+" on target: "+host+" with argument: "+foo);
|
||||
def statusCode = sh( script: "cd ${ANSIBLE_ROOT_FOLDER}/CD;./deployService.sh $service $version $host $foo;", returnStatus: true);
|
||||
sh("""
|
||||
cd ${ANSIBLE_ROOT_FOLDER}/CD;
|
||||
""")
|
||||
|
||||
def statusCode = sh( script: "./deployService.sh $service $version $host $foo;", returnStatus: true);
|
||||
sh("""
|
||||
echo " last exit code \$?";
|
||||
""")
|
||||
println("Deploy ended with status: "+statusCode);
|
||||
println("Deploy statusCode value: "+statusCode);
|
||||
if (statusCode != 0){
|
||||
currentBuild.result = 'FAILURE'
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue