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