Commit 0ac6a28f authored by Marcin Sedlak-Jakubowski's avatar Marcin Sedlak-Jakubowski

Merge branch 'docs-only-branches-clarification' into 'master'

Clarify only branches with schedules

See merge request gitlab-org/gitlab!48735
parents 638af3dd f6da7498
......@@ -1497,6 +1497,10 @@ In addition, `only` and `except` can use special keywords:
| `triggers` | For pipelines created by using a [trigger token](../triggers/README.md#trigger-token). |
| `web` | For pipelines created by using **Run pipeline** button in the GitLab UI, from the project's **CI/CD > Pipelines** section. |
Scheduled pipelines run on specific branches, so jobs configured with `only: branches`
run on scheduled pipelines too. Add `except: schedules` to prevent jobs with `only: branches`
from running on scheduled pipelines.
In the example below, `job` runs only for refs that start with `issue-`,
whereas all branches are skipped:
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment