replace DEPLOY_ROOT_FOLDER var with ANSIBLE_ROOT_FOLDER

This commit is contained in:
Roberto Cirillo 2022-10-24 14:41:28 +02:00
parent 8076da5291
commit 8333695959
1 changed files with 1 additions and 1 deletions

2
Jenkinsfile vendored
View File

@ -272,7 +272,7 @@ pipeline {
def deploy(String service, String version, String host){ def deploy(String service, String version, String host){
def now = new Date(); def now = new Date();
println("Going to deploy the service "+service+" with version: "+version+" on target: "+host); println("Going to deploy the service "+service+" with version: "+version+" on target: "+host);
def statusCode = sh( script: "cd $DEPLOY_ROOT_FOLDER;./deployService.sh $service $version $host;", returnStdout: true); def statusCode = sh( script: "cd $ANSIBLE_ROOT_FOLDER;./deployService.sh $service $version $host;", returnStdout: true);
sh(""" sh("""
echo " last exit code \$?"; echo " last exit code \$?";
""") """)