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