To deploy the PetClinic Spring application in Amazon Elastic Beanstalk (PaaS), we need the following flow:

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.