1. What is CI/CD, and why is it important?
- CI/CD stands for Continuous Integration and Continuous Deployment.
- CI: Involves developers frequently merging code changes into a shared repository, where automated builds and tests run to catch issues early.
- For example, Use Jenkins to build and test the code after commit to catch bug early.
- CD: Automates the deployment of validated code to SIT, UAT or PROD environments.
2. What are the key components of a CI/CD pipeline?
- Source Control: Stores code (e.g., GitHub, GitLab).
- Build: Compiles code and dependencies (e.g., Maven for Java).
- Test: Runs automated tests (unit, integration, e.g., JUnit, Selenium).
- Deploy: Deploys to environments (e.g., Kubernetes, AWS).
- Health Check: Checks the health of the deployed application.