While building a CI/CD pipeline, consider your need to create a project and add team members to it. The project dashboard provides visibility to the code flow through the deployment pipeline, monitoring the build, triggering alerts, and tracking application activities. The following diagram illustrates a well-defined DevOps pipeline:
CI/CD workflow best practice
Consider the following points while designing the pipeline:
- Number of stages: Stages could be development, integration, system, user acceptance, and production. Some organizations also include dev, alpha, beta, and release stages.
- Type of tests in each stage: Each stage can have multiple types of tests such as unit tests, integration tests, system tests, UATs, smoke tests, load tests, smoke tests, and A/B tests at the production stage.
- The sequence of a test: Test cases can be run in parallel or need to be in sequence.
- Monitoring and reporting: Monitor system defects and failures and send notifications...