Update Jenkinsfile

This commit is contained in:
lwj9812 2024-03-22 11:43:15 +09:00 committed by GitHub
parent 616a86f993
commit 568bde0658
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

3
Jenkinsfile vendored
View file

@ -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'
}
}
}