Description
Currently, every push to a feature or contributor branch triggers the full CI pipeline, including the deploy stage. Since deployment is intended only for main or release branches, the deploy step fails for non-production branches.
As a result, contributors frequently receive failed pipeline notifications, even though their changes are valid. This creates confusion, unnecessary noise, and a poor contributor experience.
This task focuses on updating the CI configuration so that deployment steps run only on appropriate branches, while ensuring that CI pipelines for feature and contributor branches complete successfully.
Domain
Coding (CI / DevOps)
Difficulty
Intermediate
Steps To Reproduce
- Create or push changes to a feature branch or contributor branch.
- Observe that the CI pipeline starts automatically.
- Notice that the pipeline includes the deploy stage.
- The deploy stage fails because deployment is not permitted or configured for non-main branches.
- Contributors receive a failure notification such as: isa | Failed pipeline for T413222 | f03a3607
Expected Output
- The deploy stage does not run for feature or contributor branches.
- CI pipelines for non-main branches complete successfully when tests pass.
- Deployment is restricted to main and/or release branches only.
- Contributors no longer receive false failure notifications.
Acceptance Criteria
- Deploy stage is conditionally executed only on approved branches (e.g., main, release/*).
- Feature and contributor branch pipelines pass when checks succeed.
- No deploy-related failures occur on non-deployment branches.
- CI configuration is clean, maintainable, and documented.
- Contributor experience is improved with reduced CI noise.
- No impact on production deployment workflows.