generated from gCubeCI/Pipeline-Docker-Template
add check on pending deploy components stage
This commit is contained in:
parent
fbb8c9941c
commit
fd6fbff1f8
|
@ -93,8 +93,11 @@ pipeline {
|
|||
}
|
||||
steps {
|
||||
sh '''
|
||||
echo "Cron build enabled. New deploy of ${TRIGGER_JOB} - ${TRIGGER_VERSION} appended to the deploy file"
|
||||
echo "${TRIGGER_JOB},${TRIGGER_VERSION}" >> ${DEPLOY_FILE}
|
||||
echo "Cron build enabled. New deploy of ${TRIGGER_JOB} - ${TRIGGER_VERSION} will be added to the deploy file"
|
||||
if( !(grep "${TRIGGER_JOB}" ${DEPLOY_FILE})) then
|
||||
echo "${TRIGGER_JOB},${TRIGGER_VERSION}" >> ${DEPLOY_FILE}
|
||||
else
|
||||
echo "component ${TRIGGER_JOB} already added"
|
||||
'''
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue