generated from gCubeCI/Pipeline-Docker-Template
fix cleanup section
This commit is contained in:
parent
ea8ba55ee2
commit
9eb103ddd0
|
@ -77,11 +77,11 @@ pipeline {
|
|||
}
|
||||
sh '''
|
||||
echo "cleanup $DEPLOY_FILE"
|
||||
if [ -f ${DEPLOY_BACKUP ]; then
|
||||
echo "backup found: $DEPLOY_BACKUP going to replace it"
|
||||
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
|
||||
mv ${DEPLOY_FILE} ${DEPLOY_BACKUP}
|
||||
touch ${DEPLOY_FILE}
|
||||
'''
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue