GitLab wurde erfolgreich aktualisiert. Dank regelmäßiger Updates bleibt das THM GitLab sicher und Sie profitieren von den neuesten Funktionen. Danke für Ihre Geduld.

Commit d789ca6c authored by Rémy Coutable's avatar 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
parents c3cd7fda c1b57957
......@@ -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