CI/CD pipeline workflow
This recipe will cover all the prerequisites and workflow of the pipeline that we will be implementing.
Getting ready
To that end, we’re going to use:
- AWS CodeCommit as application Git repository to automate the code push process
- AWS S3 as an artifact storage tool
- AWS Auto Scaling
- AWS CodeDeploy as the CD tool
- Jenkins as the CI tool
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:
- Jenkins will first build and then run the test cases (Jenkins listening to a particular branch through Git webhooks).
- If the test cases fail, it will notify us and stop the further after-build actions.
- If the test cases are successful, it will go to post-build action.
Note
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...