Commit e78c6a34 authored by Grzegorz Bizon's avatar Grzegorz Bizon

Merge branch '30337-incorrect-example-for-variables' into 'master'

Resolve "Documentation of `.gitlab-ci.yml` states incorrect example for variables"

Closes #30337

See merge request !11895
parents 39340e42 846b478d
...@@ -122,7 +122,7 @@ global defined variables in your job, define an empty array: ...@@ -122,7 +122,7 @@ global defined variables in your job, define an empty array:
```yaml ```yaml
job_name: job_name:
variables: [] variables: {}
``` ```
You are able to use other variables inside your variable definition (or escape them with `$$`): You are able to use other variables inside your variable definition (or escape them with `$$`):
......
...@@ -438,7 +438,7 @@ in your job, define an empty array: ...@@ -438,7 +438,7 @@ in your job, define an empty array:
```yaml ```yaml
job_name: job_name:
variables: [] variables: {}
``` ```
Job variables priority is defined in the [variables documentation][variables]. Job variables priority is defined in the [variables documentation][variables].
......
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