[go: up one dir, main page]

Skip to content

Draft: Add wildcard support to cache

What does this MR do and why?

Restores wildcard expansion functionality for files.

References

#572701

Screenshots or screen recordings

With the following config (or edited for whichever files you've got in the repo):

test_wildcard_fix:
  cache:
    - key:
        prefix: wildcard
        files:
          - "*.yml"
      paths:
        - wildcard
    - key:
        prefix: non-wildcard
        files:
          - "README.md"
      paths:
        - non-wildcard
  script:
    - echo hey

Run a pipeline. In the logs, you should see the hash being appended:

Creating cache wildcard-<HASH>-23-protected...

Creating cache non-wildcard-<HASH>-23-protected...

On master, this will be

wildcard-default-23-protected

NOTE: TBD

MR acceptance checklist

Evaluate this MR against the MR acceptance checklist. It helps you analyze changes to reduce risks in quality, performance, reliability, security, and maintainability.

Edited by Laura Montemayor

Merge request reports

Loading