mirror of
https://github.com/spring-projects/spring-petclinic.git
synced 2025-07-24 00:35:49 +00:00
Update Jenkinsfile
This commit is contained in:
parent
6c18458e0d
commit
0b344bb88b
1 changed files with 21 additions and 1 deletions
22
Jenkinsfile
vendored
22
Jenkinsfile
vendored
|
@ -71,7 +71,27 @@ pipeline {
|
||||||
|
|
||||||
stage('Codedeploy Workload') {
|
stage('Codedeploy Workload') {
|
||||||
steps {
|
steps {
|
||||||
echo "create application"
|
echo "create application"
|
||||||
|
sh 'aws deploy create-application --application-name aws00-spring-petclinic'
|
||||||
|
|
||||||
|
echo "create Codedeploy group"
|
||||||
|
sh '''
|
||||||
|
aws deploy create-deployment-group \
|
||||||
|
--application-name aws00-spring-petclinic \
|
||||||
|
--auto-scaling-groups aws00-spring-petclinic \
|
||||||
|
--deployment-group-name aws00-spring-petclinic \
|
||||||
|
--deployment-config-name CodeDeployDefault.OneAtATime \
|
||||||
|
--service-role-arn arn:aws:iam::257307634175:role/aws00-code-deploy-service-role
|
||||||
|
'''
|
||||||
|
echo "Codedeploy Workload"
|
||||||
|
sh '''
|
||||||
|
aws deploy create-deployment --application-name project00 \
|
||||||
|
--deployment-config-name CodeDeployDefault.OneAtATime \
|
||||||
|
--deployment-group-name aws00-spring-petclinic \
|
||||||
|
--s3-location bucket=aws00-codedeploy,bundleType=zip,key=deploy-1.0.zip
|
||||||
|
'''
|
||||||
|
sleep(10) // sleep 10s
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue