generated from gCubeCI/Pipeline-Docker-Template
fix DEPLOY_FILE_ROOT_FOLDER variable
This commit is contained in:
parent
10c932cc83
commit
879193b653
|
@ -45,10 +45,11 @@ pipeline {
|
||||||
|
|
||||||
environment {
|
environment {
|
||||||
AGENT_ROOT_FOLDER = "${agent_root_folder}"
|
AGENT_ROOT_FOLDER = "${agent_root_folder}"
|
||||||
DEPLOY_ROOT_FOLDER ="${agent_root_folder}/ansible-repos/ansible-playbooks/d4science-ghn-cluster/CD"
|
DEPLOY_ROOT_FOLDER ="${agent_root_folder}/ansible-repos/ansible-playbooks/d4science-ghn-cluster"
|
||||||
|
DEPLOY_FILE_ROOT_FOLDER="${agent_root_folder}/CD"
|
||||||
PIPELINE_BUILD_NUMBER = "${env.BUILD_NUMBER}"
|
PIPELINE_BUILD_NUMBER = "${env.BUILD_NUMBER}"
|
||||||
DEPLOY_FILE = "${agent_root_folder}/deploy.${PIPELINE_BUILD_NUMBER}.csv"
|
DEPLOY_FILE = "${DEPLOY_FILE_ROOT_FOLDER}/deploy.${PIPELINE_BUILD_NUMBER}.csv"
|
||||||
BACKUP_FILE = "${agent_root_folder}/deploy.${PIPELINE_BUILD_NUMBER}.bck"
|
BACKUP_FILE = "${DEPLOY_FILE_ROOT_FOLDER}/deploy.${PIPELINE_BUILD_NUMBER}.bck"
|
||||||
TRIGGER_JOB= "${params.TRIGGER_JOB}"
|
TRIGGER_JOB= "${params.TRIGGER_JOB}"
|
||||||
TRIGGER_VERSION= "${params.TRIGGER_VERSION}"
|
TRIGGER_VERSION= "${params.TRIGGER_VERSION}"
|
||||||
TRIGGER_HOST="${params.TRIGGER_HOST}"
|
TRIGGER_HOST="${params.TRIGGER_HOST}"
|
||||||
|
@ -79,7 +80,7 @@ pipeline {
|
||||||
steps {
|
steps {
|
||||||
sh '''
|
sh '''
|
||||||
date=`date`;
|
date=`date`;
|
||||||
mkdir -p /${DEPLOY_ROOT_FOLDER}
|
mkdir -p /${DEPLOY_FILE_ROOT_FOLDER}
|
||||||
'''
|
'''
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -97,7 +98,7 @@ pipeline {
|
||||||
// parse the report and extract the data
|
// parse the report and extract the data
|
||||||
// def components = getComponentsFromCSV(deployList)
|
// def components = getComponentsFromCSV(deployList)
|
||||||
println "Going to check the deploy file in ${DEPLOY_ROOT_FOLDER}"
|
println "Going to check the deploy file in ${DEPLOY_ROOT_FOLDER}"
|
||||||
def components =getComponentsFromCSVDir("${DEPLOY_ROOT_FOLDER}")
|
def components =getComponentsFromCSVDir("${DEPLOY_FILE_ROOT_FOLDER}")
|
||||||
if (components.size() > 0) {
|
if (components.size() > 0) {
|
||||||
for (component in components) {
|
for (component in components) {
|
||||||
stage(component){
|
stage(component){
|
||||||
|
|
Loading…
Reference in New Issue