generated from gCubeCI/Pipeline-Docker-Template
fix BACKUP_FILE var
This commit is contained in:
parent
19e221e7d2
commit
9e8b0c094b
|
@ -81,10 +81,10 @@ pipeline {
|
|||
}
|
||||
sh '''
|
||||
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};
|
||||
if [ -f ${BACKUP_FILE} ]; then
|
||||
echo "backup found: ${BACKUP_FILE} going to replace it";
|
||||
rm ${BACKUP_FILE};
|
||||
mv ${DEPLOY_FILE} ${BACKUP_FILE};
|
||||
touch ${DEPLOY_FILE};
|
||||
fi
|
||||
'''
|
||||
|
|
Loading…
Reference in New Issue