Commit ed29856f authored by Marcel Amirault's avatar Marcel Amirault

Merge branch 'dHannasch-master-patch-81637' into 'master'

Docs: Clarify that filepath globs are Ruby globs (as opposed to shell or JavaScript globs).

See merge request gitlab-org/gitlab!51818
parents 21c4679e 96ae7a0e
...@@ -1393,7 +1393,9 @@ job: ...@@ -1393,7 +1393,9 @@ job:
- Dockerfile - Dockerfile
``` ```
You can also use glob patterns to match multiple files in any directory in the repository: Paths are relative to the project directory (`$CI_PROJECT_DIR`) and can't directly link outside it.
You can use glob patterns to match multiple files in any directory in the repository:
```yaml ```yaml
job: job:
...@@ -1403,6 +1405,9 @@ job: ...@@ -1403,6 +1405,9 @@ job:
- spec/**.rb - spec/**.rb
``` ```
Glob patterns are interpreted with Ruby [File.fnmatch](https://docs.ruby-lang.org/en/2.7.0/File.html#method-c-fnmatch)
with the flags `File::FNM_PATHNAME | File::FNM_DOTMATCH | File::FNM_EXTGLOB`.
For performance reasons, using `exists` with patterns is limited to 10,000 For performance reasons, using `exists` with patterns is limited to 10,000
checks. After the 10,000th check, rules with patterned globs always match. checks. After the 10,000th check, rules with patterned globs always match.
......
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