pipeline source

The predefined variable CI_PIPELINE_SOURCE, which says what created a pipeline, such as push, merge_request_event, schedule or web.

In more detail

Rules test it to decide which pipeline type a job joins, for example a job that runs only in merge request pipelines. A child pipeline has the source parent_pipeline, and a pipeline started through the API has the source api.

Related terms

Taught in

References

Certification courses