Commit 5097cf4f authored by Steve Azzopardi's avatar Steve Azzopardi Committed by Evan Read

Add note about nested variables for GIT_CLONE_PATH

The variable $GIT_CLONE_PATH does not support nested variables, it will
only expand the variables once, not more.

reference https://gitlab.com/gitlab-org/gitlab-runner/issues/4319
parent a35195f4
...@@ -2620,6 +2620,24 @@ test: ...@@ -2620,6 +2620,24 @@ test:
- pwd - 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 ## Special YAML features
It's possible to use special YAML features like anchors (`&`), aliases (`*`) It's possible to use special YAML features like anchors (`&`), aliases (`*`)
......
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