mirror of
https://github.com/elastic/kibana.git
synced 2025-04-23 17:28:26 -04:00
* Re-enable Bazel cache on CI
* remove exit test
(cherry picked from commit 30e482bc8e
)
Co-authored-by: Jonathan Budzenski <jon@elastic.co>
This commit is contained in:
parent
c0cc711dfb
commit
c5fa6f724d
1 changed files with 7 additions and 1 deletions
|
@ -11,12 +11,18 @@ cat <<EOF > $KIBANA_DIR/.bazelrc
|
|||
build --build_metadata=ROLE=CI
|
||||
EOF
|
||||
|
||||
BAZEL_CACHE_MODE=none
|
||||
BAZEL_CACHE_MODE=${BAZEL_CACHE_MODE:-gcs}
|
||||
|
||||
if [[ "$BAZEL_CACHE_MODE" == "gcs" ]]; then
|
||||
echo "[bazel] enabling caching with GCS buckets"
|
||||
|
||||
BAZEL_REGION="${BUILDKITE_AGENT_GCP_REGION:-us-central1}"
|
||||
|
||||
if ! [[ "$BAZEL_REGION" =~ ^(us-central1|northamerica-northeast2|europe-west2|southamerica-east1|asia-south2)$ ]]; then
|
||||
echo "unsupported bazel cache region $BAZEL_REGION"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
BAZEL_BUCKET="kibana-ci-bazel_$BAZEL_REGION"
|
||||
|
||||
echo "[bazel] using GCS bucket: $BAZEL_BUCKET"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue