summaryrefslogtreecommitdiff
path: root/doc/ci/variables/README.md
diff options
context:
space:
mode:
authorGrzegorz Bizon <grzesiek.bizon@gmail.com>2018-05-15 14:41:20 +0200
committerGrzegorz Bizon <grzesiek.bizon@gmail.com>2018-05-15 14:51:10 +0200
commit73aee958e2f4f7428a961c3c63323a7b782599bf (patch)
tree44e943a871a5f94f455f1c1e3195c6acfde33ada /doc/ci/variables/README.md
parentc1377c6cf0647cccd04bc6fb65d745a2e446f827 (diff)
downloadgitlab-ce-73aee958e2f4f7428a961c3c63323a7b782599bf.tar.gz
Add docs on pattern matching syntax in variables expression
Diffstat (limited to 'doc/ci/variables/README.md')
-rw-r--r--doc/ci/variables/README.md7
1 files changed, 7 insertions, 0 deletions
diff --git a/doc/ci/variables/README.md b/doc/ci/variables/README.md
index 42367bf13f7..cbd2ab979f4 100644
--- a/doc/ci/variables/README.md
+++ b/doc/ci/variables/README.md
@@ -530,6 +530,13 @@ Below you can find supported syntax reference:
`$STAGING` value needs to a string, with length higher than zero.
Variable that contains only whitespace characters is not an empty variable.
+1. Pattern matching _(added in 11.0)_
+
+ > Example: `$VARIABLE =~ /^content.*/`
+
+ It is possible perform pattern matching against a variable and regular
+ expression. Expression like this evaluates to truth if matches are found.
+
### Unsupported predefined variables
Because GitLab evaluates variables before creating jobs, we do not support a