Middle+
What triggers were used to start the pipeline in CI/CD?
sobes.tech AI
Answer from AI
In CI/CD pipelines, triggers for starting usually include:
- Commit to repository — for example, push to the main or develop branch.
- Pull Request (Merge Request) — creating or updating a PR can trigger build and tests.
- Scheduler (cron) — running on a schedule, for example, for nightly builds or regression testing.
Additionally, there can be triggers from external events, such as a webhook from a monitoring system or manual trigger via UI.
Example in GitLab CI:
workflow:
rules:
- if: '$CI_PIPELINE_SOURCE == "push"'
- if: '$CI_PIPELINE_SOURCE == "merge_request_event"'
- if: '$CI_PIPELINE_SOURCE == "schedule"'