Why doesn't "Rebuild without cache" work?

 

You may wish to clear the cache for your project in the event it becomes corrupt or old. You may also notice you have the ability to re-run your build without a cache, only to find out that after your next build, you are still pulling from the outdated cache.

 

"Rebuild without cache" only runs a single build without your cache.

 

To Delete Your Cache

https://circleci.com/docs/2.0/caching/#example-caching-configuration

Your cache is saved via a specified key. Perhaps like so:

m2-{{ checksum "pom.xml"}}

You can "clear" your cache by changing this key.

m2-v2{{ checksum "pom.xml"}}

This will start a fresh cache under a new key.

Was this article helpful?
0 out of 1 found this helpful

Comments

1 comment
  • I can't see the option to rebuild without cache on our test runs. Only rebuild with ssh.

Please sign in to leave a comment.