Compare commits
7 Commits
feature-aw
...
feature/ci
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
acca84e265 | ||
|
|
c80b649258 | ||
|
|
49de28930e | ||
|
|
ac94e042f4 | ||
|
|
f43ea41133 | ||
|
|
25d628e222 | ||
|
|
78b0aee8ab |
22
Jenkinsfile
vendored
22
Jenkinsfile
vendored
@@ -6,12 +6,12 @@ pipeline {
|
|||||||
|
|
||||||
steps {
|
steps {
|
||||||
withMaven(maven : 'maven_3_5_0') {
|
withMaven(maven : 'maven_3_5_0') {
|
||||||
sh 'mvn clean install'
|
sh 'mvn clean compile'
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/* stage ('Testing Stage') {
|
stage ('Testing Stage') {
|
||||||
|
|
||||||
steps {
|
steps {
|
||||||
withMaven(maven : 'maven_3_5_0') {
|
withMaven(maven : 'maven_3_5_0') {
|
||||||
@@ -19,14 +19,24 @@ pipeline {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
*/
|
|
||||||
|
stage ('Deploy?') {
|
||||||
|
steps {
|
||||||
|
input('Do you want to deploy?')
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
stage ('Deployment Stage') {
|
stage ('Deployment Stage') {
|
||||||
steps {
|
steps {
|
||||||
|
|
||||||
sh '/usr/local/bin/aws s3 cp target/jenkins-example*.jar s3://techprimers-s3/'
|
withCredentials([[$class: 'UsernamePasswordMultiBinding', credentialsId: 'PCF_LOGIN',
|
||||||
sh '/usr/local/bin/aws s3 ls'
|
usernameVariable: 'USERNAME', passwordVariable: 'PASSWORD']]) {
|
||||||
sh '/usr/local/bin/aws s3 ls s3://techprimers-s3/'
|
|
||||||
|
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