Compare commits
7 Commits
feature-aw
...
feature/ci
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
acca84e265 | ||
|
|
c80b649258 | ||
|
|
49de28930e | ||
|
|
ac94e042f4 | ||
|
|
f43ea41133 | ||
|
|
25d628e222 | ||
|
|
78b0aee8ab |
15
Jenkinsfile
vendored
15
Jenkinsfile
vendored
@@ -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'
|
||||
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user