Skip to content

Commit

Permalink
ci: remove old app folder
Browse files Browse the repository at this point in the history
  • Loading branch information
bndynet committed Jun 24, 2018
1 parent d3339c7 commit 4b83452
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions Jenkinsfile
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,8 @@ pipeline {
}

environment {
DEPLOY_TARGET = '../../../../websites/demo/wf.war'
APP_NAME = 'wf'
DEPLOY_TO = '../../../../websites/demo/'
EMAIL_RECIPIENTS = 'zb@bndy.net'
HAS_DEPLOYMENT = 'false'
}
Expand Down Expand Up @@ -39,8 +40,9 @@ pipeline {
}
steps {
echo 'Deploying....'
sh 'rm -f $DEPLOY_TARGET'
sh 'mv ./target/wf-*.war $DEPLOY_TARGET'
sh 'rm -f ${DEPLOY_TO}/${APP_NAME}.war'
sh 'rm -Rf $DEPLOY_TO'
sh 'mv ./target/wf-*.war ${DEPLOY_TO}/${APP_NAME}.war'
script {
HAS_DEPLOYMENT = 'true'
}
Expand Down

0 comments on commit 4b83452

Please # to comment.