We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d3339c7 commit 4b83452Copy full SHA for 4b83452
Jenkinsfile
@@ -6,7 +6,8 @@ pipeline {
6
}
7
8
environment {
9
- DEPLOY_TARGET = '../../../../websites/demo/wf.war'
+ APP_NAME = 'wf'
10
+ DEPLOY_TO = '../../../../websites/demo/'
11
EMAIL_RECIPIENTS = 'zb@bndy.net'
12
HAS_DEPLOYMENT = 'false'
13
@@ -39,8 +40,9 @@ pipeline {
39
40
41
steps {
42
echo 'Deploying....'
- sh 'rm -f $DEPLOY_TARGET'
43
- sh 'mv ./target/wf-*.war $DEPLOY_TARGET'
+ 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'
46
script {
47
HAS_DEPLOYMENT = 'true'
48
0 commit comments