Skip to content

Commit

Permalink
include common bazel args
Browse files Browse the repository at this point in the history
  • Loading branch information
ddelgrosso1 committed Sep 26, 2024
1 parent f16d786 commit 61aa78b
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion ci/cloudbuild/builds/lib/universe_domain.sh
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,8 @@ if ((CI_CLOUDBUILD_BUILDS_LIB_UNIVERSE_DOMAIN_SH__++ != 0)); then
return 0
fi # include guard

source module ci/cloudbuild/builds/lib/bazel.sh

# Only create the SA key file if the secret is available.
if [[ -n "${UD_SERVICE_ACCOUNT}" ]]; then
ORIG_UMASK=$(umask)
Expand All @@ -35,8 +37,9 @@ function ud::bazel_run() {
}

function ud::bazel_test() {
mapfile -t args < <(bazel::common_args)
io::log "Executing bazel test $1 with obscured arguments:"
bazel test --test_env=UD_SA_KEY_FILE="${UD_SA_KEY_FILE}" \
bazel test "${args[@]}" --test_env=UD_SA_KEY_FILE="${UD_SA_KEY_FILE}" \
--test_env=UD_REGION="${UD_REGION}" \
--test_env=UD_PROJECT="${UD_PROJECT}" -- "$@"
}

0 comments on commit 61aa78b

Please sign in to comment.