summaryrefslogtreecommitdiffhomepage
path: root/scripts
diff options
context:
space:
mode:
authorAdin Scannell <ascannell@google.com>2020-07-28 13:51:38 -0700
committergVisor bot <gvisor-bot@google.com>2020-07-28 13:53:13 -0700
commit7881610a3f9ac7382221ee17da908ff8f86053b5 (patch)
tree48d82143278edb9c4c9d9d6567669757e8b540d0 /scripts
parent851880009020288d71fa6878f3dae9ce2aca4395 (diff)
Use the appropriate remote configuration.
PiperOrigin-RevId: 323646156
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/common_build.sh4
1 files changed, 2 insertions, 2 deletions
diff --git a/scripts/common_build.sh b/scripts/common_build.sh
index f4210a3f3..d4a6c4908 100755
--- a/scripts/common_build.sh
+++ b/scripts/common_build.sh
@@ -31,9 +31,9 @@ declare -a BAZEL_FLAGS=(
"--keep_going"
"--verbose_failures=true"
)
-if [[ -v KOKORO_BAZEL_AUTH_CREDENTIAL ]]; then
+# If running via kokoro, use the remote config.
+if [[ -v KOKORO_ARTIFACTS_DIR ]]; then
BAZEL_FLAGS+=(
- "--auth_credentials=${KOKORO_BAZEL_AUTH_CREDENTIAL}"
"--config=remote"
)
fi