O'Reilly logo

AWS Automation Cookbook by Nikit Swaraj

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

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 ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required