问题
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
回答1:
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
来源:https://stackoverflow.com/questions/58220283/bazel-remote-cache-analysis-data