Skip to content

Commit

Permalink
[ci] Fix ci/bazelisk.sh printing to stdout
Browse files Browse the repository at this point in the history
Signed-off-by: James Wainwright <[email protected]>
  • Loading branch information
jwnrt committed Jan 16, 2024
1 parent 6c251f3 commit 6bc6e82
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions ci/bazelisk.sh
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ if [[ -n "${PWD_OVERRIDE}" ]]; then
cd "${PWD_OVERRIDE}" || exit
fi

echo "Running bazelisk in $(pwd)."
echo "Running bazelisk in $(pwd)." >&2

# An additional bazelrc must be synthesized to specify precisely how to use the
# GCP bazel cache.
Expand All @@ -20,10 +20,10 @@ GCP_BAZELRC="$(mktemp /tmp/XXXXXX.bazelrc)"
trap 'rm ${GCP_BAZELRC}' EXIT

if [[ -n "$GCP_CREDS_FILE" && -f "$GCP_CREDS_FILE" ]]; then
echo "Applying GCP cache key; will upload to the cache."
echo "Applying GCP cache key; will upload to the cache." >&2
echo "build --google_credentials=${GCP_CREDS_FILE}" >> "${GCP_BAZELRC}"
else
echo "No key/invalid path to key. Download from cache only."
echo "No key/invalid path to key. Download from cache only." >&2
echo "build --remote_upload_local_results=false" >> "${GCP_BAZELRC}"
fi

Expand Down

0 comments on commit 6bc6e82

Please sign in to comment.