Skip to content

Commit 4b83452

Browse files
committed
ci: remove old app folder
1 parent d3339c7 commit 4b83452

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

Jenkinsfile

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,8 @@ pipeline {
66
}
77

88
environment {
9-
DEPLOY_TARGET = '../../../../websites/demo/wf.war'
9+
APP_NAME = 'wf'
10+
DEPLOY_TO = '../../../../websites/demo/'
1011
EMAIL_RECIPIENTS = 'zb@bndy.net'
1112
HAS_DEPLOYMENT = 'false'
1213
}
@@ -39,8 +40,9 @@ pipeline {
3940
}
4041
steps {
4142
echo 'Deploying....'
42-
sh 'rm -f $DEPLOY_TARGET'
43-
sh 'mv ./target/wf-*.war $DEPLOY_TARGET'
43+
sh 'rm -f ${DEPLOY_TO}/${APP_NAME}.war'
44+
sh 'rm -Rf $DEPLOY_TO'
45+
sh 'mv ./target/wf-*.war ${DEPLOY_TO}/${APP_NAME}.war'
4446
script {
4547
HAS_DEPLOYMENT = 'true'
4648
}

0 commit comments

Comments
 (0)