On behalf of the Spring Cloud team it is my pleasure to announce a new milestone release of Spring Cloud Pipelines -
Each application can contain a file called
pipeline.yml with the following structure:
lowercaseEnvironmentName1: services: - type: service1Type name: service1Name coordinates: value - type: service2Type name: service2Name key: value lowercaseEnvironmentName2: services: - type: service3Type name: service3Name coordinates: value - type: service4Type name: service4Name key: value
For a given environment we declare a list of infrastructure services that we want to have deployed. Services have
stubrunner) - this value gets then applied to the
name- name of the service to get deployed
coordinates- coordinate that allows you to fetch the binary of the service. Examples: It can be a maven coordinate
groupid:artifactid:version, docker image
arbitrary key value pairs - you can customize the services as you wish
stubrunner type can also have the
useClasspath flag turned on to true or false.
test: services: - type: rabbitmq name: rabbitmq-github-webhook - type: mysql name: mysql-github-webhook - type: eureka name: eureka-github-webhook coordinates: com.example.eureka:github-eureka:0.0.1.M1 - type: stubrunner name: stubrunner-github-webhook coordinates: com.example.eureka:github-analytics-stub-runner-boot-classpath-stubs:0.0.1.M1 useClasspath: true stage: services: - type: rabbitmq name: rabbitmq-github - type: mysql name: mysql-github - type: eureka name: github-eureka coordinates: com.example.eureka:github-eureka:0.0.1.M1
When the deployment to
test or deployment to
stage occurs, Spring Cloud Pipelines will:
testenvironment, delete existing services and redeploy the ones from the list
stageenvironment, if the service is not available it will get deployed. Otherwise nothing will happen
You can click here to see the Release Notes for more information about what’s been done for this milestone.
If you’re already using Spring Cloud Pipelines please comment under this issue with steps you needed to take to customize the project to suit your company’s needs. Without your feedback I won’t be able to automate the customization process!
If you’re interested in more information about the project please check out the Spring Cloud Pipelines webinar that was recorded recently.