summaryrefslogtreecommitdiffhomepage
path: root/kokoro
diff options
context:
space:
mode:
authorNicolas Lacasse <nlacasse@google.com>2018-12-14 13:57:58 -0800
committerShentubot <shentubot@google.com>2018-12-14 16:14:02 -0800
commited930354ef46df9b6feece36e59ee644a7cdfa7f (patch)
treeba119fd95c2a89e5d96a27398af8551b9f661b00 /kokoro
parentcd1e9a3fd42f2e91781cf61f010d1aa3f02f72c1 (diff)
Give Kokoro access to RBE service.
PiperOrigin-RevId: 225599728 Change-Id: I70cd9f9d7375e56ae8d0a531ad4efb41418e7402
Diffstat (limited to 'kokoro')
-rw-r--r--kokoro/common.cfg30
1 files changed, 30 insertions, 0 deletions
diff --git a/kokoro/common.cfg b/kokoro/common.cfg
new file mode 100644
index 000000000..de58242d9
--- /dev/null
+++ b/kokoro/common.cfg
@@ -0,0 +1,30 @@
+# Give Kokoro access to Remote Build Executor (RBE) service account key.
+before_action {
+ fetch_keystore {
+ keystore_resource {
+ keystore_config_id: 73898
+ keyname: "kokoro_rbe"
+ }
+ }
+}
+
+# Configure bazel to access RBE.
+bazel_setting {
+ # Our GCP project name
+ project_id: "copybara-shentu"
+
+ # Use RBE for execution as well as caching.
+ local_execution: false
+
+ # This must match the values in the job config.
+ auth_credential: {
+ keystore_config_id: 73898
+ keyname: "kokoro_rbe"
+ }
+
+ # Do not change unless you know what you are doing.
+ bes_backend_address: "buildeventservice.googleapis.com"
+ foundry_backend_address: "remotebuildexecution.googleapis.com"
+ upsalite_frontend_address: "https://source.cloud.google.com"
+}
+