7 Commits

Author SHA1 Message Date
MovingToWeb
acca84e265 add input stage 2019-07-19 22:31:46 +05:30
MovingToWeb
c80b649258 add input stage 2019-07-19 22:30:54 +05:30
MovingToWeb
49de28930e add input stage 2019-07-19 22:26:31 +05:30
MovingToWeb
ac94e042f4 add input stage 2019-07-19 22:25:35 +05:30
Ajay Kumar S
f43ea41133 Update Jenkinsfile 2019-07-19 21:36:10 +05:30
Ajay Kumar
25d628e222 Add deploy stage 2019-03-25 19:18:10 +05:30
Ajay Kumar
78b0aee8ab Add deploy stage 2019-03-25 19:14:22 +05:30

15
Jenkinsfile vendored
View File

@@ -20,11 +20,22 @@ pipeline {
}
}
stage ('Deploy?') {
steps {
input('Do you want to deploy?')
}
}
stage ('Deployment Stage') {
steps {
withMaven(maven : 'maven_3_5_0') {
sh 'mvn deploy'
withCredentials([[$class: 'UsernamePasswordMultiBinding', credentialsId: 'PCF_LOGIN',
usernameVariable: 'USERNAME', passwordVariable: 'PASSWORD']]) {
sh '/usr/local/bin/cf login -a http://api.run.pivotal.io -u $USERNAME -p $PASSWORD'
sh '/usr/local/bin/cf push'
}
}
}