Commit 96ae7a0e authored by David Hannasch's avatar David Hannasch Committed by Marcel Amirault

Bring rules:exists more in line with the robust documentation of cache:paths,...

Bring rules:exists more in line with the robust documentation of cache:paths, but noting that rules:exists handles globs differently.
parent 5d3bedde
...@@ -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