Add deploy stage

This commit is contained in:
Ajay Kumar
2019-03-25 19:14:22 +05:30
parent 03df67aeee
commit 78b0aee8ab

7
Jenkinsfile vendored
View File

@@ -23,8 +23,11 @@ pipeline {
stage ('Deployment Stage') {
steps {
withMaven(maven : 'maven_3_5_0') {
sh 'mvn deploy'
withCredentials([[$class: 'UsernamePasswordMultiBinding', credentialsId: 'PCF_LOGIN',
usernameVariable: 'USERNAME', passwordVariable: 'PASSWORD']]) {
sh 'cf login -a http://api.run.pivotal.io -u $USERNAME -p $PASSWORD'
}
}
}