diff --git a/Jenkinsfile b/Jenkinsfile index 5be0d3a..95cc461 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -7,6 +7,20 @@ pipeline { } stages { + stage('Clear Repository') { + steps { + script { + sh """ + echo 'Clearing Front directory' + find /volume1/AcaMate/PROJECT/Application/Front -mindepth 1 -maxdepth 1 \\ + ! -name 'privacy' \\ + ! -name 'publish' \\ + -exec rm -rf {} + + echo 'Clean complete' + """ + } + } + } stage('Clone Repository') { steps { git url: 'https://git.ipstein.myds.me/AcaMate/AcaMate_Web.git', branch: env.GIT_BRANCH