Explain what all possible values of 'only' and 'except' definitions for GitLab CI do
In https://docs.gitlab.com/ce/ci/yaml/README.html#only-and-except we refer to those values, but we don't explain what they do.
Value | GitLab version | Description |
---|---|---|
api |
When pipeline has been triggered by a second pipelines API (not triggers API) | |
branches |
When a branch is pushed. | |
external |
When using CI services other than GitLab | |
tags |
When a tag is pushed. | |
pipelines |
For multi-project triggers, created using the API with CI_JOB_TOKEN . |
|
pushes |
Pipeline is triggered by a git push by the user |
|
schedules |
For scheduled pipelines. | |
triggers |
For pipelines created using a trigger token. | |
web |
For pipelines created using Run pipeline button in GitLab UI. |
Edited by Achilleas Pipinellis