generated from gCubeCI/Pipeline-Docker-Template
fix if condition
This commit is contained in:
parent
453c175417
commit
dfec47ad91
|
@ -94,7 +94,7 @@ pipeline {
|
||||||
steps {
|
steps {
|
||||||
sh '''
|
sh '''
|
||||||
echo "Cron build enabled. New deploy of ${TRIGGER_JOB} - ${TRIGGER_VERSION} will be added to the deploy file"
|
echo "Cron build enabled. New deploy of ${TRIGGER_JOB} - ${TRIGGER_VERSION} will be added to the deploy file"
|
||||||
if grep -q \"\${TRIGGER_JOB}\" \${DEPLOY_FILE} then
|
if grep -q \"\${TRIGGER_JOB}\" \${DEPLOY_FILE}; then
|
||||||
echo "component ${TRIGGER_JOB} already added. Nothing to add."
|
echo "component ${TRIGGER_JOB} already added. Nothing to add."
|
||||||
else
|
else
|
||||||
echo "${TRIGGER_JOB},${TRIGGER_VERSION}" >> ${DEPLOY_FILE}
|
echo "${TRIGGER_JOB},${TRIGGER_VERSION}" >> ${DEPLOY_FILE}
|
||||||
|
|
Loading…
Reference in New Issue