Add deploy stage
This commit is contained in:
7
Jenkinsfile
vendored
7
Jenkinsfile
vendored
@@ -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'
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user