How to do it...

Now, let’s walk through the flow, how it’s going to work, and what the advantages are before we implement it all. When a new code is pushed to a particular GIT repository/AWS CodeCommit branch, then following steps will take place:

  1. Jenkins will first build and then run the test cases (Jenkins listening to a particular branch through Git webhooks).
  2. If the test cases fail, it will notify us and stop the further after-build actions.
  3. If the test cases are successful, it will go to post-build action.
In our case, the application is ready to be deployed and is merged with the master branch of the application. So, Jenkins will pull the latest revision and build it.
  1. Later on, Jenkins will push the latest code in the zip file format ...

Get AWS Automation Cookbook now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.