From a332ddf09d265c82a5f4cc2268873b2932cab86c Mon Sep 17 00:00:00 2001 From: lwj9812 <141805156+lwj9812@users.noreply.github.com> Date: Fri, 22 Mar 2024 12:05:49 +0900 Subject: [PATCH] Update Jenkinsfile --- Jenkinsfile | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) 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' + } + } } - } - } } }