Clearing Cache on a trigger


#1

Can caches be made non-immutable? We tried adding a job that restored the cache, did an rm -rf and save cache and ran it with a weekly trigger, but that didn’t clear it. That or allow {{ .Environment.variableName }} to read from a user set env var.


#2

I suggest adding this as a feature request.


#3

You would not be able to delete the cache from within the container, as it is downloaded from elsewhere. Currently you would need to change the cache key in your config.yml to access a separate bucket. A feature request to specifically delete cache would be excellent!


#4

Feature request added: https://circleci.ideas.aha.io/ideas/CCI-I-658