Add deploy stage
This commit is contained in:
11
Jenkinsfile
vendored
11
Jenkinsfile
vendored
@@ -23,10 +23,13 @@ pipeline {
|
|||||||
|
|
||||||
stage ('Deployment Stage') {
|
stage ('Deployment Stage') {
|
||||||
steps {
|
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