summaryrefslogtreecommitdiff
path: root/doc
diff options
context:
space:
mode:
authorSébastien <seb4stien@georget.name>2017-06-04 06:14:42 +0000
committerGrzegorz Bizon <grzegorz@gitlab.com>2017-06-04 06:14:42 +0000
commit846b478d3c276765f8f1d5b9aa3a1222c198e030 (patch)
tree62cb274704ccf3d1d5cf6838c44e4ca1775e16d7 /doc
parent39340e428e3546d3749498ce10b19ae6cda0e646 (diff)
downloadgitlab-ce-846b478d3c276765f8f1d5b9aa3a1222c198e030.tar.gz
Resolve "Documentation of `.gitlab-ci.yml` states incorrect example for variables"
Diffstat (limited to 'doc')
-rw-r--r--doc/ci/variables/README.md2
-rw-r--r--doc/ci/yaml/README.md2
2 files changed, 2 insertions, 2 deletions
diff --git a/doc/ci/variables/README.md b/doc/ci/variables/README.md
index 76ad7c564a3..656e261dff8 100644
--- a/doc/ci/variables/README.md
+++ b/doc/ci/variables/README.md
@@ -122,7 +122,7 @@ global defined variables in your job, define an empty array:
```yaml
job_name:
- variables: []
+ variables: {}
```
You are able to use other variables inside your variable definition (or escape them with `$$`):
diff --git a/doc/ci/yaml/README.md b/doc/ci/yaml/README.md
index fab5d14ac54..2c9aa437932 100644
--- a/doc/ci/yaml/README.md
+++ b/doc/ci/yaml/README.md
@@ -438,7 +438,7 @@ in your job, define an empty array:
```yaml
job_name:
- variables: []
+ variables: {}
```
Job variables priority is defined in the [variables documentation][variables].