small fix

This commit is contained in:
Roberto Cirillo 2024-10-30 10:33:40 +01:00
parent ec7ae82e9b
commit ceaa196895
1 changed files with 1 additions and 5 deletions

6
Jenkinsfile vendored
View File

@ -345,11 +345,7 @@ def deployJobs(def serviceList){
def deploy(String service, String version, String host, String foo){ def deploy(String service, String version, String host, String foo){
def now = new Date(); def now = new Date();
println("Going to deploy the service "+service+" with version: "+version+" on target: "+host+" with argument: "+foo); println("Going to deploy the service "+service+" with version: "+version+" on target: "+host+" with argument: "+foo);
sh(""" def statusCode = sh( script: "${ANSIBLE_ROOT_FOLDER}/CD/deployService.sh $service $version $host $foo;", returnStatus: true);
cd ${ANSIBLE_ROOT_FOLDER}/CD;
""")
def statusCode = sh( script: "./deployService.sh $service $version $host $foo;", returnStatus: true);
sh(""" sh("""
echo " last exit code \$?"; echo " last exit code \$?";
""") """)