Commit c1b57957 authored by TeNNoX's avatar TeNNoX

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

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