提交 c1b57957 编写于 作者: T TeNNoX

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

上级 b2d5869e
......@@ -131,6 +131,16 @@ job_name:
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
>**Notes:**
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册