Skip to content

Adds multiple caches per build [RUN ALL RSPEC] [RUN AS-IF-FOSS]

Laura Montemayor requested to merge lm-multiple-cache-per-file into master

What does this MR do?

Adds the ability to add multiple cache per build or globally.

rspec:
  stage: build
  only:
    - master
  cache:
    - key: KEY
      paths:
        - node_modules/
      policy: pull
    - key: KEY
      paths:
        - node_modules/
      policy: push
  script:
    - echo 'hey'

Note: This is not a breaking change, given as it still accepts a regular hash for a single cache:

rspec:
  stage: build
  only:
    - master
  cache:
    key: KEY
    paths:
      - node_modules/
    policy: pull
  script:
    - echo 'hey'

Does this MR meet the acceptance criteria?

Conformity

Availability and Testing

#32814 (closed)

Edited by 🤖 GitLab Bot 🤖

Merge request reports