diff --git a/Jenkinsfile b/Jenkinsfile index c275f580d..60a4143a2 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -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") + } + } + } + } } }