I’m having trouble with my CI configuration. It has been working for the past six months or so but it’s suddenly started failing. My
setup stage is uploading a cache of
node_modules but the subsequent stages are no longer downloading said cache, which causes them to fail. This is on the GitLab.com hosted service.
Here’s my CI config:
cache: paths: - node_modules/ key: "$CI_COMMIT_SHA" image: node:latest stages: - setup - test - frontend - deploy setup: # cache uploaded here (working - "Uploading cache.zip to <url>... Created cache") stage: setup script: - npm install && npx license-checker --exclude 'MIT, ISC, BSD-2-Clause, Unlicense, BSD-3-Clause, Zlib, Apache-2.0, WTFPL, MPL-2.0, CC-BY-4.0, CC-BY-3.0, CC0-1.0, BSD, Public Domain' test: stage: test cache: # cache is never downloaded in this stage policy: pull services: - mongo:latest script: - NODE_ENV=test npm run test:lockdown frontend: stage: frontend cache: policy: pull script: - npm run bower install --allow-root - npm run gulp build deploy_staging: stage: deploy environment: name: staging url: <redacted> script: - "echo deploy" only: - master deploy_prod: stage: deploy environment: name: production url: <redacted> script: - "echo deploying" when: manual only: - master
Any help would be greatly appreciated. I’m sure I’ve got something configured wrong but I can’t work out what it is. Many thanks!