#!/bin/bash

# Fail on any error.
set -e

# Display commands being run.
# WARNING: please only enable 'set -x' if necessary for debugging, and be very
#  careful if you handle credentials (e.g. from Keystore) with 'set -x':
#  statements like "export VAR=$(cat /tmp/keystore/credentials)" will result in
#  the credentials being printed in build logs.
#  Additionally, recursive invocation with credentials as command-line
#  parameters, will print the full command, with credentials, in the build logs.
# set -x

# Code under repo is checked out to ${KOKORO_ARTIFACTS_DIR}/git.
# The final directory name in this path is determined by the scm name specified
# in the job configuration.
cd "${KOKORO_ARTIFACTS_DIR}/git/localtoast"
bazel build ...

#!/bin/bash

# Fail on any error.
set -e

# Install Bazel.
use_bazel.sh 4.2.1
command -v bazel
bazel version

# Code under repo is checked out to ${KOKORO_ARTIFACTS_DIR}/git.
# The final directory name in this path is determined by the scm name specified
# in the job configuration.
cd "${KOKORO_ARTIFACTS_DIR}/git/localtoast"
bazel build ...

Install Bazel in the Kokoro build script.
Install Bazel in the Kokoro build script.

PiperOrigin-RevId: 408628308
Change-Id: I35b658fb01507435f4b116147af2613df2b73522
