Issue
I am running bazel (via bazelisk) inside a docker container on jenkins. Furthermore I use a remote cache. On subsequent runs with no changes I get 100% cache hits, but the analysis phase (~60seconds) runs everytime a new container is created.
Is there a way to cache the analysis data remotely aswell or am I forced to run bazel directly on the jenkins agent so it doesn't shut itself off after build completion?
Thanks in advance
Solution
https://docs.bazel.build/versions/master/remote-caching.html#known-issues
this link describes that the state is stored in-memory and therefore can not be cached easily
Answered By - Mark
Answer Checked By - David Goodson (JavaFixing Volunteer)