Commit 90341cbf authored by Evan Read's avatar Evan Read

Merge branch...

Merge branch 'docs/12733-docs-using-multiple-extends-in-gitlab-ci-yml-introduced-in-gitlab-12' into 'master'

Specify what version of multiple extends in docs

Closes gitlab-ee#12733

See merge request gitlab-org/gitlab-ce!30667
parents be062695 35ec3e57
...@@ -974,7 +974,7 @@ review_app: ...@@ -974,7 +974,7 @@ review_app:
stop_review_app: stop_review_app:
stage: deploy stage: deploy
variables: variables:
GIT_STRATEGY: none GIT_STRATEGY: none
script: make delete-app script: make delete-app
when: manual when: manual
environment: environment:
...@@ -2221,10 +2221,10 @@ spinach: ...@@ -2221,10 +2221,10 @@ spinach:
script: rake spinach script: rake spinach
``` ```
It's also possible to use multiple parents for `extends`. In GitLab 12.0 and later, it's also possible to use multiple parents for
The algorithm used for merge is "closest scope wins", so keys `extends`. The algorithm used for merge is "closest scope wins", so
from the last member will always shadow anything defined on other levels. keys from the last member will always shadow anything defined on other
For example: levels. For example:
```yaml ```yaml
.only-important: .only-important:
...@@ -2644,7 +2644,7 @@ variables: ...@@ -2644,7 +2644,7 @@ variables:
The value of `GIT_CLONE_PATH` is expanded once into The value of `GIT_CLONE_PATH` is expanded once into
`$CI_BUILDS_DIR/go/src/namespace/project`, and results in failure `$CI_BUILDS_DIR/go/src/namespace/project`, and results in failure
because `$CI_BUILDS_DIR` is not expanded. because `$CI_BUILDS_DIR` is not expanded.
## Special YAML features ## Special YAML features
......
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