Commit 1f708ebb authored by Toon Claes's avatar Toon Claes Committed by Evan Read

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: default avatarOlliver Schinagl <oliver@schinagl.nl>
parent 3ad30037
...@@ -367,10 +367,11 @@ job: ...@@ -367,10 +367,11 @@ job:
- branches@gitlab-org/gitlab-ce - branches@gitlab-org/gitlab-ce
except: except:
- master@gitlab-org/gitlab-ce - master@gitlab-org/gitlab-ce
- release/.*@gitlab-org/gitlab-ce
``` ```
The above example will run `job` for all branches on `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 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. default. If it doesn't have an `except` rule, it is empty.
......
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