diff --git a/Jenkinsfile b/Jenkinsfile index 60a4143a2..e64e9b05a 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -76,11 +76,12 @@ pipeline { stage('Upload to S3'){ steps { echo 'Upload to S3' - dir("$(env.WORKSPACE)"){ + 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' } } }