In the gitlab documentation you find a list of predefined variables HERE, where the variable CI_PIPELINE_SOURCE
is explained to have the possible values "push, web, schedule, api, external, chat, webide, merge_request_event, external_pull_request_event, parent_pipeline, trigger, or pipeline."
However, it is not explained, what they mean.
- push: When you push something to a branch?
- web: When you trigger a pipeline from the web GUI?
- schedule: When a pipeline is triggered by a schedule
- api: When the pipeline is triggered by an API request
- external: ???
- chat: ???
- webide: ???
- merge_request_event: Seems to be triggered when a merge request is created. Does not trigger when a change is actually merged
- external_pull_request_event: ???
- parent_pipeline: ???
- trigger: ???
- pipeline: another pipeline?
If someone knows where the documentation for that is hiding, I appreciate if you can let me know where to find it.
In addition, how can I figure out when some changes are actually merged into a branch? How can I trigger a pipeline in that event?
In addition, how can
please one question per question ;) When I can't find documentation, sources are the documentation. gitlab.com/… will give a lot of hints.