GitLab runner using same old cache and not clearing up cache and executing and resulting in the pipeline with the same old result

Replace this template with your information

GitLab runner using same old cache and not clearing up cache and executing and resulting in the pipeline with the same old result

Describe your question in as much detail as possible:
GitLab runner using same old cache and not clearing up cache and executing and resulting in the pipeline with the same old result

  • What are you seeing, and how does that differ from what you expect to see?
  • Consider including screenshots, error messages, and/or other helpful visuals
  • What version are you on? Are you using self-managed or GitLab.com?

[0KRunning with

GitLab Enterprise Edition 13.12.0-ee

gitlab-runner 13.11.0 (7f7a4bb0)

  • GitLab (Hint: /help):
  • Runner (Hint: /admin/runners):
  • Add the CI configuration from .gitlab-ci.yml and other configuration if relevant (e.g. docker-compose.yml)

  • What troubleshooting steps have you already taken? Can you link to any docs or other resources so we know where you have been?

Thanks for taking the time to be thorough in your request, it really helps! :blush:

cache does exactly that, it caches files between pipelines. If you don’t want to have cache between pipelines you can use key attribute like this:

cache:
  key: $CI_PIPELINE_ID
  paths:
    - my_file.txt
1 Like

I get it, thank you so much.