Compare commits
8 Commits
feature/ci
...
feature-aw
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
f842d55ed2 | ||
|
|
f08e6e83f2 | ||
|
|
0205396449 | ||
|
|
9037623604 | ||
|
|
a1ce73f535 | ||
|
|
ec8b84b630 | ||
|
|
aa6be34cd7 | ||
|
|
9dde1ef038 |
24
Jenkinsfile
vendored
24
Jenkinsfile
vendored
@@ -6,12 +6,12 @@ pipeline {
|
|||||||
|
|
||||||
steps {
|
steps {
|
||||||
withMaven(maven : 'maven_3_5_0') {
|
withMaven(maven : 'maven_3_5_0') {
|
||||||
sh 'mvn clean compile'
|
sh 'mvn clean install'
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
stage ('Testing Stage') {
|
/* stage ('Testing Stage') {
|
||||||
|
|
||||||
steps {
|
steps {
|
||||||
withMaven(maven : 'maven_3_5_0') {
|
withMaven(maven : 'maven_3_5_0') {
|
||||||
@@ -19,25 +19,15 @@ pipeline {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
*/
|
||||||
stage ('Deploy?') {
|
|
||||||
steps {
|
|
||||||
input('Do you want to deploy?')
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
stage ('Deployment Stage') {
|
stage ('Deployment Stage') {
|
||||||
steps {
|
steps {
|
||||||
|
|
||||||
withCredentials([[$class: 'UsernamePasswordMultiBinding', credentialsId: 'PCF_LOGIN',
|
sh '/usr/local/bin/aws s3 cp target/jenkins-example*.jar s3://techprimers-s3/'
|
||||||
usernameVariable: 'USERNAME', passwordVariable: 'PASSWORD']]) {
|
sh '/usr/local/bin/aws s3 ls'
|
||||||
|
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