mirror of
https://github.com/spring-projects/spring-petclinic.git
synced 2025-07-22 15:55:49 +00:00
Update Jenkinsfile
This commit is contained in:
parent
c16e255a41
commit
a332ddf09d
1 changed files with 11 additions and 11 deletions
22
Jenkinsfile
vendored
22
Jenkinsfile
vendored
|
@ -73,18 +73,18 @@ pipeline {
|
||||||
sh "docker image prune -a -f"
|
sh "docker image prune -a -f"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
stage('Upload to S3'){
|
stage('Upload to S3') {
|
||||||
steps {
|
steps {
|
||||||
echo 'Upload to S3'
|
echo 'Upload to S3'
|
||||||
dir("${env.WORKSPACE}"){
|
dir("${env.WORKSPACE}") {
|
||||||
sh 'zip -r deploy.zip ./deploy appspec.yaml'
|
sh 'zip -r deploy.zip ./deploy appspec.yaml'
|
||||||
withAWS(region:"${REGION}", credentials: "${AWS_CREDENTIAL_NAME}"){
|
withAWS(region:"${REGION}", credentials: "${AWS_CREDENTIAL_NAME}"){
|
||||||
s3Upload(file:"deploy.zip", bucket:"std01-codedeploy-bucket")
|
s3Upload(file:"deploy.zip", bucket:"std01-codedeploy-bucket")
|
||||||
}
|
}
|
||||||
sh 'rm -rf ./deploy.zip'
|
sh 'rm -rf ./deploy.zip'
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue