diff --git a/Jenkinsfile b/Jenkinsfile index 80ed1622a..a5d3b173b 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -60,7 +60,12 @@ pipeline { } stage('Upload to S3') { steps { - echo "Upload to S3" + echo "Upload to S3" + dir("${env.WORKSPACE}") { + sh 'zip -r deploy-1.0.zip ./script appspec.yml' + sh 'aws s3 cp --region ap-northeast-2 --acl private ./deploy-1.0.zip s3://aws00-codedeploy' + sh 'rm -rf ./deploy-1.0.zip' + } } }