diff options
author | Toon Claes <toon@gitlab.com> | 2019-03-12 04:26:26 +0000 |
---|---|---|
committer | Evan Read <eread@gitlab.com> | 2019-03-12 04:26:26 +0000 |
commit | 1f708ebb6603fd22619f622f7c8ddf160bf69806 (patch) | |
tree | e20b10daacc20a708f58951ce7420f3ce16cbbfe /doc/ci/yaml | |
parent | 3ad300377ba4dcfd8e5280a12af084519c5991a7 (diff) | |
download | gitlab-ce-1f708ebb6603fd22619f622f7c8ddf160bf69806.tar.gz |
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>
Diffstat (limited to 'doc/ci/yaml')
-rw-r--r-- | doc/ci/yaml/README.md | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/doc/ci/yaml/README.md b/doc/ci/yaml/README.md index e295b696423..a44f4b62a0e 100644 --- a/doc/ci/yaml/README.md +++ b/doc/ci/yaml/README.md @@ -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. |