doc Clarify the special branch 'master'

The 'master' branch name is confusing as it indicates some special branch name,
where it is actually just a 'ref'. 'branches' _is_ a special name as it
indicates 'all' branches.

Lets clarify the example a little to indicate this.

Signed-off-by: Olliver Schinagl <oliver@schinagl.nl>
This commit is contained in:
Toon Claes 2019-03-12 04:26:26 +00:00 committed by Evan Read
parent 3ad300377b
commit 1f708ebb66
1 changed files with 2 additions and 1 deletions

View File

@ -367,10 +367,11 @@ job:
- branches@gitlab-org/gitlab-ce
except:
- master@gitlab-org/gitlab-ce
- release/.*@gitlab-org/gitlab-ce
```
The above example will run `job` for all branches on `gitlab-org/gitlab-ce`,
except master.
except `master` and those with names prefixed with `release/`.
If a job does not have an `only` rule, `only: ['branches', 'tags']` is set by
default. If it doesn't have an `except` rule, it is empty.