add check on pending deploy components stage

This commit is contained in:
Roberto Cirillo 2022-04-27 15:36:31 +02:00
parent fbb8c9941c
commit fd6fbff1f8
1 changed files with 5 additions and 2 deletions

7
Jenkinsfile vendored
View File

@ -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"
'''
}
}