fix deploy file name reference

This commit is contained in:
Roberto Cirillo 2022-04-26 15:25:58 +02:00
parent 11353d91df
commit 1fe3032ddf
1 changed files with 4 additions and 3 deletions

7
Jenkinsfile vendored
View File

@ -17,8 +17,9 @@ if (params.deployFile) {
deployList = params.deployFile deployList = params.deployFile
} else { } else {
println "Using local deploy file" println "Using local deploy file"
//load the report from the URL //load the report from local
deployList = agent_root_folder+'/'+agent_deploy_filename; deployList = agent_root_folder+'/'+agent_deploy_filename;
println "Load from local file "+$deployList
} }
// parse the report and extract the data // parse the report and extract the data
def components = parseDeployComponent(deployList) def components = parseDeployComponent(deployList)
@ -42,7 +43,7 @@ pipeline {
environment { environment {
AGENT_ROOT_FOLDER = "${agent_root_folder}" AGENT_ROOT_FOLDER = "${agent_root_folder}"
DEPLOY_FILE = "${agent_root_folder}/deploy.txt" DEPLOY_FILE = "${agent_root_folder}/${agent_deploy_filename}"
TRIGGER_JOB= "${params.TRIGGER_JOB}" TRIGGER_JOB= "${params.TRIGGER_JOB}"
TRIGGER_VERSION= "${params.TRIGGER_VERSION}" TRIGGER_VERSION= "${params.TRIGGER_VERSION}"
} }
@ -97,7 +98,7 @@ pipeline {
steps { steps {
sh ''' sh '''
echo "Cron build enabled. New deploy of ${TRIGGER_JOB} - ${TRIGGER_VERSION} appended to the deploy file" echo "Cron build enabled. New deploy of ${TRIGGER_JOB} - ${TRIGGER_VERSION} appended to the deploy file"
echo "${TRIGGER_JOB} - ${TRIGGER_VERSION}" >> ${DEPLOY_FILE} echo "${TRIGGER_JOB} , ${TRIGGER_VERSION}" >> ${DEPLOY_FILE}
''' '''
} }
} }