Commit 5f46aca7 authored by Marcel Amirault's avatar Marcel Amirault

Merge branch 'patch-122' into 'master'

Demonstrate YAML anchors for variables with multiple variables in anchor

See merge request gitlab-org/gitlab!32916
parents 676e0e2c fb91fff1
...@@ -3833,6 +3833,7 @@ the use of the `SAMPLE_VARIABLE` variable: ...@@ -3833,6 +3833,7 @@ the use of the `SAMPLE_VARIABLE` variable:
# global variables # global variables
variables: &global-variables variables: &global-variables
SAMPLE_VARIABLE: sample_variable_value SAMPLE_VARIABLE: sample_variable_value
ANOTHER_SAMPLE_VARIABLE: another_sample_variable_value
# a job that needs to set the GIT_STRATEGY variable, yet depend on global variables # a job that needs to set the GIT_STRATEGY variable, yet depend on global variables
job_no_git_strategy: job_no_git_strategy:
...@@ -3856,7 +3857,7 @@ lines where the job is defined: ...@@ -3856,7 +3857,7 @@ lines where the job is defined:
# - run test # - run test
``` ```
you can instead start its name with a dot (`.`) and it won't be processed by You can instead start its name with a dot (`.`) and it won't be processed by
GitLab CI/CD. In the following example, `.hidden_job` will be ignored: GitLab CI/CD. In the following example, `.hidden_job` will be ignored:
```yaml ```yaml
......
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