generated from gCubeCI/Pipeline-Docker-Template
fix trigger_host param
This commit is contained in:
parent
0b83e9128e
commit
da899baafd
|
@ -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
|
||||
'''
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue