fix trigger_host param

This commit is contained in:
Roberto Cirillo 2022-05-10 15:34:47 +02:00
parent 0b83e9128e
commit da899baafd
1 changed files with 2 additions and 1 deletions

3
Jenkinsfile vendored
View File

@ -49,6 +49,7 @@ pipeline {
BACKUP_FILE = "${agent_root_folder}/${agent_deploy_backup_filename}"
TRIGGER_JOB= "${params.TRIGGER_JOB}"
TRIGGER_VERSION= "${params.TRIGGER_VERSION}"
TRIGGER_HOST="${params.TRIGGER_HOST}"
TRIGGER_CD="${params.TRIGGER_CD}"
// maybe here define another param used to identify the target host. In this way the developer can change it from the job
}
@ -116,7 +117,7 @@ pipeline {
if grep -q \"\${TRIGGER_JOB}\" \${DEPLOY_FILE}; then
echo "component ${TRIGGER_JOB} already added. Nothing to add."
else
echo "${TRIGGER_JOB},${TRIGGER_VERSION},${}" >> ${DEPLOY_FILE}
echo "${TRIGGER_JOB},${TRIGGER_VERSION},${TRIGGER_HOST}" >> ${DEPLOY_FILE}
fi
'''
}