mirror of
https://github.com/spring-projects/spring-petclinic.git
synced 2025-07-22 15:55:49 +00:00
Update Jenkinsfile
This commit is contained in:
parent
8f921bd568
commit
1e6f360872
1 changed files with 3 additions and 3 deletions
6
Jenkinsfile
vendored
6
Jenkinsfile
vendored
|
@ -9,7 +9,7 @@ pipeline {
|
||||||
environment {
|
environment {
|
||||||
AWS_CREDENTIAL_NAME = "AWSCredentials"
|
AWS_CREDENTIAL_NAME = "AWSCredentials"
|
||||||
REGION = "ap-northeast-2"
|
REGION = "ap-northeast-2"
|
||||||
DOCKER_IMAGE_NAME="std00-spring-petclinic"
|
DOCKER_IMAGE_NAME="std01-spring-petclinic"
|
||||||
ECR_REPOSITORY = "257307634175.dkr.ecr.ap-northeast-2.amazonaws.com"
|
ECR_REPOSITORY = "257307634175.dkr.ecr.ap-northeast-2.amazonaws.com"
|
||||||
ECR_DOCKER_IMAGE = "${ECR_REPOSITORY}/${DOCKER_IMAGE_NAME}"
|
ECR_DOCKER_IMAGE = "${ECR_REPOSITORY}/${DOCKER_IMAGE_NAME}"
|
||||||
}
|
}
|
||||||
|
@ -18,7 +18,7 @@ pipeline {
|
||||||
stage('Git Clone') {
|
stage('Git Clone') {
|
||||||
steps {
|
steps {
|
||||||
echo 'Git Clone'
|
echo 'Git Clone'
|
||||||
git url: 'https://github.com/sjh4616/spring-petclinic.git',
|
git url: 'https://github.com/lwj9812/spring-petclinic.git',
|
||||||
branch: 'efficient-webjars'
|
branch: 'efficient-webjars'
|
||||||
}
|
}
|
||||||
post {
|
post {
|
||||||
|
@ -81,7 +81,7 @@ pipeline {
|
||||||
dir("${env.WORKSPACE}") {
|
dir("${env.WORKSPACE}") {
|
||||||
sh 'zip -r deploy.zip ./deploy appspec.yaml'
|
sh 'zip -r deploy.zip ./deploy appspec.yaml'
|
||||||
withAWS(region:"${REGION}", credentials: "${AWS_CREDENTIAL_NAME}"){
|
withAWS(region:"${REGION}", credentials: "${AWS_CREDENTIAL_NAME}"){
|
||||||
s3Upload(file:"deploy.zip", bucket:"std00-codedeploy-bucket")
|
s3Upload(file:"deploy.zip", bucket:"std01-codedeploy-bucket")
|
||||||
}
|
}
|
||||||
sh 'rm -rf ./deploy.zip'
|
sh 'rm -rf ./deploy.zip'
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue