Skip to content

Commit b0c0dab

Browse files
Google APIscopybara-github
authored andcommitted
chore: use GCS cache for Bazel builds
PiperOrigin-RevId: 451202879
1 parent 1df6a95 commit b0c0dab

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

.kokoro/build.sh

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,11 @@ set -e
44

55
cd ${KOKORO_ARTIFACTS_DIR}/github/googleapis
66
cp .kokoro/.bazelrc $HOME/.bazelrc
7+
CACHE_BUCKET=client-libraries-bazel-cache-github
8+
CACHE_CMDLINE="--remote_cache=https://storage.googleapis.com/${CACHE_BUCKET} --google_default_credentials"
79

810
#
911
# Run build and tests
1012
#
11-
${BAZELISK_BIN} --output_user_root=${BAZEL_ROOT} build --keep_going //...
12-
${BAZELISK_BIN} --output_user_root=${BAZEL_ROOT} test --flaky_test_attempts=3 --keep_going //...
13+
${BAZELISK_BIN} --output_user_root=${BAZEL_ROOT} build ${CACHE_CMDLINE} --keep_going //...
14+
${BAZELISK_BIN} --output_user_root=${BAZEL_ROOT} test ${CACHE_CMDLINE} --flaky_test_attempts=3 --keep_going //...

0 commit comments

Comments
 (0)