generated from gCubeCI/Pipeline-Docker-Template
fix cleanup section
This commit is contained in:
parent
a2649dc430
commit
86ef2f57e5
|
@ -79,9 +79,9 @@ pipeline {
|
|||
echo "cleanup $DEPLOY_FILE"
|
||||
if [ -f ${DEPLOY_BACKUP} ]; then
|
||||
echo "backup found: ${DEPLOY_BACKUP} going to replace it"
|
||||
rm ${DEPLOY_BACKUP}
|
||||
mv ${DEPLOY_FILE} ${DEPLOY_BACKUP}
|
||||
touch ${DEPLOY_FILE}
|
||||
rm ${DEPLOY_BACKUP};
|
||||
mv ${DEPLOY_FILE} ${DEPLOY_BACKUP};
|
||||
touch ${DEPLOY_FILE};
|
||||
'''
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue