Merge branch 'docs/add-note-git-clone-path' into 'master'
Add note about nested variables for GIT_CLONE_PATH See merge request gitlab-org/gitlab-ce!29590
This commit is contained in:
commit
5c9acb69fe
|
@ -2620,6 +2620,24 @@ test:
|
|||
- pwd
|
||||
```
|
||||
|
||||
### Nested paths
|
||||
|
||||
The value of `GIT_CLONE_PATH` is expanded once and nesting variables
|
||||
within it is not supported.
|
||||
|
||||
For example, you define both the variables below in your
|
||||
`.gitlab-ci.yml` file:
|
||||
|
||||
```yml
|
||||
variables:
|
||||
GOPATH: $CI_BUILDS_DIR/go
|
||||
GIT_CLONE_PATH: $GOPATH/src/namespace/project
|
||||
```
|
||||
|
||||
The value of `GIT_CLONE_PATH` is expanded once into
|
||||
`$CI_BUILDS_DIR/go/src/namespace/project`, and results in failure
|
||||
because `$CI_BUILDS_DIR` is not expanded.
|
||||
|
||||
## Special YAML features
|
||||
|
||||
It's possible to use special YAML features like anchors (`&`), aliases (`*`)
|
||||
|
|
Loading…
Reference in New Issue