From 1f708ebb6603fd22619f622f7c8ddf160bf69806 Mon Sep 17 00:00:00 2001 From: Toon Claes Date: Tue, 12 Mar 2019 04:26:26 +0000 Subject: 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 --- doc/ci/yaml/README.md | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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. -- cgit v1.2.1