Save_cache when: always


#1

We’re using Bazel to build on CircleCI 2.0. Bazel uses files in ~/.cache/bazel to figure out how to re-run only the tests depend on modified source code. Therefore, it is useful to save_cache even when the build has failed.

The save_cache step should support when: always, just like the run step.


#2

Use {{ epoch }}


#3

I don’t understand how that will help. In fact, it seems like that will do the opposite of what I want—it will prevent the cache from EVER being restored. I want to save cache even when the build fails.


#4

I apologize- I misunderstood. I’ll open a feature request.


#6

Was this ever implemented?


#7

It was. Sorry for forgetting to update.


#8