Commit e2f53abf authored by Grzegorz Bizon's avatar Grzegorz Bizon

Merge branch 'nbrombal-master-patch-77287' into 'master'

Highlight non-recursion of `artifacts:exclude` in `.gitlab-ci.yml` keyword documentation

See merge request gitlab-org/gitlab!59196
parents 3d5513c7 129912eb
......@@ -3281,6 +3281,18 @@ artifacts:
- binaries/**/*.o
```
Unlike [`artifacts:paths`](#artifactspaths), `exclude` paths are not recursive. To exclude all of the contents of a directory, you can match them explicitly rather than matching the directory itself.
For example, to store all files in `binaries/` but nothing located in the `temp/` subdirectory:
```yaml
artifacts:
paths:
- binaries/
exclude:
- binaries/temp/**/*
```
Files matched by [`artifacts:untracked`](#artifactsuntracked) can be excluded using
`artifacts:exclude` too.
......
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