Skip to content

cache key for CI stopped working

This problem we got from Friday or weekend.

I have this configuration of .gitlab-ci.yml

  cache:
    key: "$CI_COMMIT_SHA"
    policy: pull
    paths:
      - node_modules/

And cache does not work on my master branch

After job done I see this in terminal:

  • Job succeeded

Without cache creating message (any other branch) If I don't set the key - it works well

  • Creating cache default_1...
  • node_modules/: found 49215 matching files
  • Created cache
  • Job succeeded

Full .gitlab-ci.yml in attachment gitlabci.yml

Thank you!

Edited by sd