diff options
author | Rémy Coutable <remy@rymai.me> | 2017-03-01 12:37:56 +0000 |
---|---|---|
committer | Rémy Coutable <remy@rymai.me> | 2017-03-01 12:37:56 +0000 |
commit | d789ca6c95fdfc485eb446fafa7faf7d7c4c6b52 (patch) | |
tree | 6cfe9a1ae0ebf230d20a7ee3bb0544dcee597a1b | |
parent | c3cd7fdadc2f794d2b80e472a8cb2d78786ca1d4 (diff) | |
parent | c1b5795705ac91a2196a6df0bf577769af0131d5 (diff) | |
download | gitlab-ce-d789ca6c95fdfc485eb446fafa7faf7d7c4c6b52.tar.gz |
Merge branch 'patch-15' into 'master'
Add note about how to use or escape variables inside other variables
See merge request !9601
-rw-r--r-- | doc/ci/variables/README.md | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/doc/ci/variables/README.md b/doc/ci/variables/README.md index 620d4744685..04c0af44237 100644 --- a/doc/ci/variables/README.md +++ b/doc/ci/variables/README.md @@ -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:** |