Sobes.tech
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:

  1. Commit to repository — for example, push to the main or develop branch.
  2. Pull Request (Merge Request) — creating or updating a PR can trigger build and tests.
  3. 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"'
What triggers were used to start the pipeline in… - sobes.tech