Skip to content

Commit 1975053

Browse files
authored
fix: remove manual installation of gcloud cli (#1543)
1 parent 459ef7a commit 1975053

File tree

1 file changed

+1
-12
lines changed

1 file changed

+1
-12
lines changed

.toys/kokoro-ci.rb

Lines changed: 1 addition & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -274,21 +274,10 @@ def install_cloud_sql_proxy
274274

275275
##
276276
# Installs the gcloud tool
277+
# gcloud installed from system packages https://github.com/googleapis/testing-infra-docker/pull/446
277278
#
278279
def install_gcloud_cli
279280
return if defined? @gcloud_cli_installed
280-
puts "Installing gcloud cli", :bold
281-
Dir.chdir "/tmp" do
282-
exec ["wget", "-q", "https://dl.google.com/dl/cloudsdk/release/google-cloud-sdk.tar.gz"]
283-
exec ["tar", "xzf", "google-cloud-sdk.tar.gz"]
284-
mv "google-cloud-sdk", "/google-cloud-sdk"
285-
end
286-
exec ["/google-cloud-sdk/install.sh",
287-
"--usage-reporting", "false",
288-
"--path-update", "false",
289-
"--command-completion", "false"]
290-
ENV["PATH"] = "#{ENV['PATH']}:/google-cloud-sdk/bin"
291-
exec ["gcloud", "-q", "components", "update"]
292281
exec ["gcloud", "config", "set", "disable_prompts", "True"]
293282
exec ["gcloud", "config", "set", "project", assert_env("E2E_GOOGLE_CLOUD_PROJECT")]
294283
exec ["gcloud", "config", "set", "app/promote_by_default", "false"]

0 commit comments

Comments
 (0)