Changed deployment type
This commit is contained in:
parent
15d8e4da77
commit
f07bad0d90
2 changed files with 20 additions and 6 deletions
9
Jenkinsfile
vendored
9
Jenkinsfile
vendored
|
|
@ -27,9 +27,14 @@ node {
|
|||
}
|
||||
|
||||
stage('Deploy') {
|
||||
input message: 'Deploy?', submitter: 'ziver'
|
||||
timeout(time:2, unit:'HOURS') {
|
||||
input message: 'Deploy?', submitter: 'ziver'
|
||||
}
|
||||
node {
|
||||
sh 'ant deploy'
|
||||
withCredentials([[$class: 'UsernamePasswordMultiBinding', credentialsId: '46f1d99b-2037-47b9-a7b7-57a1066337fc',
|
||||
usernameVariable: 'USERNAME', passwordVariable: 'PASSWORD']]) {
|
||||
sh 'ant -Dtomcat.user=${USERNAME} -Dtomcat.pass=${PASSWORD} deploy'
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue