Compare commits
7 Commits
master
...
feature/ci
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
acca84e265 | ||
|
|
c80b649258 | ||
|
|
49de28930e | ||
|
|
ac94e042f4 | ||
|
|
f43ea41133 | ||
|
|
25d628e222 | ||
|
|
78b0aee8ab |
17
Jenkinsfile
vendored
17
Jenkinsfile
vendored
@@ -20,13 +20,24 @@ pipeline {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
stage ('Deploy?') {
|
||||||
|
steps {
|
||||||
|
input('Do you want to deploy?')
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
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 '/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