fix deploy_root_folder variable

This commit is contained in:
Roberto Cirillo 2022-05-10 11:36:13 +02:00
parent 8562a9d48e
commit 783b3f9b9a
1 changed files with 2 additions and 2 deletions

4
Jenkinsfile vendored
View File

@ -44,7 +44,7 @@ pipeline {
}
environment {
AGENT_ROOT_FOLDER = "${agent_root_folder}"
DEPLOY_ROOT_FOLDER ="${agent_root_folder}/ansible-repos/ansible-playbooks/d4science-ghn-cluster/"
DEPLOY_ROOT_FOLDER ="${agent_root_folder}/ansible-repos/ansible-playbooks/d4science-ghn-cluster/CD"
DEPLOY_FILE = "${agent_root_folder}/${agent_deploy_filename}"
BACKUP_FILE = "${agent_root_folder}/${agent_deploy_backup_filename}"
TRIGGER_JOB= "${params.TRIGGER_JOB}"
@ -218,7 +218,7 @@ def appendFooter( def File) {
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 $DEPLOY_ROOT_FOLDER/;./deployService.sh $service $version $host;", returnStdout: true);
def statusCode = sh( script: "cd $DEPLOY_ROOT_FOLDER;./deployService.sh $service $version $host;", returnStdout: true);
println("Deploy ended with status: "+statusCode);
sh("""
echo " last exit code \$?";