From 3f7af908edc5c1edc208603e08d9bbec25cec91d Mon Sep 17 00:00:00 2001 From: s4616 <87678241+s4616@users.noreply.github.com> Date: Mon, 10 Jul 2023 19:49:30 +0900 Subject: [PATCH] Update Jenkinsfile --- Jenkinsfile | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) 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' + } } }