I'm using Jenkins with CloudFormation and CodeDeploy plugin.

I am able to use jenkins to build CloudFormation stack when there is new commit to my git repo.

I'm able to deploy code to my EC2 instances in auto scaling group via CodeDeploy plugin as well.

Question:

How can I automate the entire process so that when my Jenkins job to create CloudFormation Stack is completed the CodeDeploy job can be triggered next to complete the code deployment process.

Cheers