提交 d789ca6c 编写于 作者: R Rémy Coutable

Merge branch 'patch-15' into 'master'

Add note about how to use or escape variables inside other variables

See merge request !9601
...@@ -131,6 +131,16 @@ job_name: ...@@ -131,6 +131,16 @@ job_name:
variables: [] variables: []
``` ```
You are able to use other variables inside your variable definition (or escape them with `$$`):
```yaml
variables:
LS_CMD: 'ls $FLAGS $$TMP_DIR'
FLAGS: '-al'
script:
- 'eval $LS_CMD' # will execute 'ls -al $TMP_DIR'
```
## Secret variables ## Secret variables
>**Notes:** >**Notes:**
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册