diff --git a/Jenkinsfile b/Jenkinsfile index f6fbe2623..42795842d 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -73,18 +73,18 @@ 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") - } - sh 'rm -rf ./deploy.zip' + 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") + } + sh 'rm -rf ./deploy.zip' + } + } } - } - } } }