bazel: Add ResultStore to remote cache config
This is required for infra to generate ResultStore links in CI/CQ
builds.
Also sort the remote cache flags alphabetically.
Change-Id: I2f47bfe7307a9cccde10c599140a5e952aeb8332
Reviewed-on: https://pigweed-review.googlesource.com/c/pigweed/quickstart/bazel/+/238192
Lint: Lint 🤖 <android-build-ayeaye@system.gserviceaccount.com>
Commit-Queue: Auto-Submit <auto-submit@pigweed-service-accounts.iam.gserviceaccount.com>
Pigweed-Auto-Submit: Ted Pudlik <tpudlik@google.com>
Reviewed-by: Dave Roth <davidroth@google.com>
diff --git a/.bazelrc b/.bazelrc
index e6d16ab..4507f9c 100644
--- a/.bazelrc
+++ b/.bazelrc
@@ -106,8 +106,15 @@
# ============
# Use the remote cache. This will only work for users who have permission to
# access it (including the CI system!).
-common:remote_cache --remote_cache=grpcs://remotebuildexecution.googleapis.com
+common:remote_cache --bes_backend="buildeventservice.googleapis.com"
+common:remote_cache --bes_instance_name=pigweed-rbe-open
+common:remote_cache --bes_results_url="https://source.cloud.google.com/results/invocations/"
+common:remote_cache --bes_timeout=600s
common:remote_cache --google_default_credentials=true
+# Required to use buildeventservice on Bazel 8+.
+# TODO: b/345556899 -- Remove this flag when no longer required.
+common:remote_cache --legacy_important_outputs
+common:remote_cache --remote_cache=grpcs://remotebuildexecution.googleapis.com
common:remote_cache --remote_instance_name=projects/pigweed-rbe-open/instances/default-instance
common:remote_cache --remote_upload_local_results=false