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