diff options
author | Achilleas Pipinellis <axilleas@axilleas.me> | 2016-11-25 14:41:16 +0100 |
---|---|---|
committer | Achilleas Pipinellis <axilleas@axilleas.me> | 2016-11-25 14:41:46 +0100 |
commit | 07c3d2cafab4045f19849217f7e2e1a2b3a708d0 (patch) | |
tree | dd2aa2134e6e814a88b50b7d2572634bb5b89568 /doc/ci/yaml/README.md | |
parent | 02d843299f9b08289ff3069947f3c29ca5fa6f07 (diff) | |
download | gitlab-ce-docs/refactor-ci-variables.tar.gz |
Refactor CI variables docsdocs/refactor-ci-variables
Diffstat (limited to 'doc/ci/yaml/README.md')
-rw-r--r-- | doc/ci/yaml/README.md | 16 |
1 files changed, 11 insertions, 5 deletions
diff --git a/doc/ci/yaml/README.md b/doc/ci/yaml/README.md index 338c9a27789..5f88974d360 100644 --- a/doc/ci/yaml/README.md +++ b/doc/ci/yaml/README.md @@ -406,14 +406,20 @@ except master. ### job variables It is possible to define build variables using a `variables` keyword on a job -level. It works basically the same way as its global-level equivalent but -allows you to define job-specific build variables. +level. It works basically the same way as its [global-level equivalent](#variables) +but allows you to define job-specific build variables. When the `variables` keyword is used on a job level, it overrides global YAML -build variables and predefined variables. +build variables and predefined variables. To turn off global defined variables +in your job, define an empty array: -Build variables priority is defined in -[variables documentation](../variables/README.md). +```yaml +job_name: + variables: [] +``` + +Build variables priority is defined in the +[variables documentation][variables]. ### tags |