generated from gCubeCI/Pipeline-Docker-Template
fix deploy_root_folder variable
This commit is contained in:
parent
8562a9d48e
commit
783b3f9b9a
|
@ -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 \$?";
|
||||
|
|
Loading…
Reference in New Issue