[7.x] [Bazel] Only persist cache and create build invocations in on-merge pipeline (#114035) (#114339)

* [Bazel] Only persist cache and create build invocations in on-merge pipeline (#114035)

Signed-off-by: Tyler Smalley <tyler.smalley@elastic.co>

* [ci] Fix setup_bazel permissions

Signed-off-by: Tyler Smalley <tyler.smalley@elastic.co>

Co-authored-by: Tyler Smalley <tyler.smalley@elastic.co>
This commit is contained in:
Kibana Machine 2021-10-07 16:57:07 -04:00 committed by GitHub
parent b63428a70a
commit 3b4bb6f89d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 9 additions and 6 deletions

View file

@ -2,12 +2,13 @@
# Import shared settings first so we can override below
import %workspace%/.bazelrc.common
## Disabled for now
# Remote cache settings for local env
# build --remote_cache=https://storage.googleapis.com/kibana-bazel-cache
# build --incompatible_remote_results_ignore_disk=true
# build --remote_accept_cached=true
# build --remote_upload_local_results=false
build --remote_cache=grpcs://cloud.buildbuddy.io
build --incompatible_remote_results_ignore_disk=true
build --noremote_upload_local_results
build --remote_timeout=30
build --remote_header=x-buildbuddy-api-key=3EYk49W2NefOx2n3yMze
build --remote_accept_cached=true
# BuildBuddy
## Metadata settings

0
.buildkite/scripts/common/setup_bazel.sh Normal file → Executable file
View file

View file

@ -89,7 +89,6 @@ if [[ "${SKIP_CI_SETUP:-}" != "true" ]]; then
if [[ -d .buildkite/scripts && "${BUILDKITE_COMMAND:-}" != "buildkite-agent pipeline upload"* ]]; then
source .buildkite/scripts/common/env.sh
source .buildkite/scripts/common/setup_node.sh
source .buildkite/scripts/common/setup_bazel.sh
fi
fi

View file

@ -2,6 +2,9 @@
set -euo pipefail
# Write Bazel cache for Linux
.buildkite/scripts/common/setup_bazel.sh
.buildkite/scripts/bootstrap.sh
.buildkite/scripts/build_kibana.sh
.buildkite/scripts/post_build_kibana.sh