To deploy the PetClinic Spring application in Amazon Elastic Beanstalk (PaaS), we need the following flow:
![](https://static.packt-cdn.com/products/9781787285965/graphics/assets/image_07_027.png)
We have PetClinic-Code, PetClinic, and PetClinic-Deploy-ElasticBeanstalk build jobs that we have created in this chapter.
Configure PetClinic as a downstream job for PetClinic-Code; and configure PetClinic-Deploy-ElasticBeanstalk as a downstream job for the PetClinic build job.