Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGitLab Bot <gitlab-bot@gitlab.com>2021-06-13 09:10:01 +0300
committerGitLab Bot <gitlab-bot@gitlab.com>2021-06-13 09:10:01 +0300
commit19197d7806afe14fa971c7ce1d107679e26c8a8c (patch)
treec0b5447c6a6281951da5710f08a021e4f2806d40 /doc/ci/variables
parentfb41d98732c08850ff68aebaae47867bbf400e4d (diff)
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'doc/ci/variables')
-rw-r--r--doc/ci/variables/README.md40
1 files changed, 0 insertions, 40 deletions
diff --git a/doc/ci/variables/README.md b/doc/ci/variables/README.md
index 1820c28555b..cb7669a973c 100644
--- a/doc/ci/variables/README.md
+++ b/doc/ci/variables/README.md
@@ -795,46 +795,6 @@ Examples:
- `($VARIABLE1 =~ /^content.*/ || $VARIABLE2 =~ /thing$/) && $VARIABLE3`
- `$CI_COMMIT_BRANCH == "my-branch" || (($VARIABLE1 == "thing" || $VARIABLE2 == "thing") && $VARIABLE3)`
-### Storing regular expressions in variables
-
-It is possible to store a regular expression in a variable, to be used for pattern matching.
-The following example tests whether `$RELEASE` contains either the
-string `staging0` or the string `staging1`:
-
-```yaml
-variables:
- STAGINGRELS: '/staging0|staging1/'
-
-deploy_staging:
- script: do.sh deploy staging
- environment: staging
- rules:
- - if: '$RELEASE =~ $STAGINGRELS'
-```
-
-NOTE:
-The available regular expression syntax is limited. See [related issue](https://gitlab.com/gitlab-org/gitlab/-/issues/35438)
-for more details.
-
-If needed, you can use a test pipeline to determine whether a regular expression works in a variable. The example below tests the `^mast.*` regular expression directly,
-as well as from in a variable:
-
-```yaml
-variables:
- MYSTRING: 'main'
- MYREGEX: '/^mast.*/'
-
-testdirect:
- script: /bin/true
- rules:
- - if: '$MYSTRING =~ /^mast.*/'
-
-testvariable:
- script: /bin/true
- rules:
- - if: '$MYSTRING =~ $MYREGEX'
-```
-
## Debug logging
> Introduced in GitLab Runner 1.7.