Changed deployment type

This commit is contained in:
Ziver Koc 2017-08-07 16:11:41 +02:00
parent 15d8e4da77
commit f07bad0d90
2 changed files with 20 additions and 6 deletions

9
Jenkinsfile vendored
View file

@ -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'
}
}
}