Commit 6b96259a authored by TeNNoX's avatar TeNNoX

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

parent e9a7fa24
......@@ -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%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment