Skip to content

Commit 0a9772b

Browse files
authored
Set CLOUDSDK_PYTHON after performing the Cloud SDK update (#3647)
1 parent 402ce3b commit 0a9772b

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

kokoro/ubuntu/release.sh

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,14 +8,16 @@ set -o errexit
88
# Display commands being run.
99
set -o xtrace
1010

11-
# More recent Cloud SDK requires Python 3.5 (b/194714889)
12-
export CLOUDSDK_PYTHON=python3.5
13-
1411
gsutil -q cp "gs://ct4e-m2-repositories-for-kokoro/m2-cache.tar" - \
1512
| tar -C "${HOME}" -xf -
1613

1714
export CLOUDSDK_CORE_DISABLE_USAGE_REPORTING=true
1815
gcloud components update --quiet
16+
17+
# More recent Cloud SDK requires Python 3.5 (b/194714889)
18+
if [ -z "$CLOUDSDK_PYTHON" ]; then
19+
export CLOUDSDK_PYTHON=python3.5
20+
fi
1921
gcloud components install app-engine-java --quiet
2022

2123
echo "OAUTH_CLIENT_ID: ${OAUTH_CLIENT_ID}"

0 commit comments

Comments
 (0)