From 3bebbe5d5bf73a554a034f1380915068b431df16 Mon Sep 17 00:00:00 2001 From: gurusai-voleti Date: Fri, 9 Jan 2026 08:57:18 +0000 Subject: [PATCH 1/2] chore: Migrate gsutil usage to gcloud storage --- .kokoro-windows/Import-Secrets.ps1 | 2 +- .kokoro-windows/New-BuildEnv.ps1 | 2 +- .kokoro/build-local-docker.ps1 | 2 +- .kokoro/upload-secrets.ps1 | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/.kokoro-windows/Import-Secrets.ps1 b/.kokoro-windows/Import-Secrets.ps1 index 95497859ac1..b94573d6c2f 100644 --- a/.kokoro-windows/Import-Secrets.ps1 +++ b/.kokoro-windows/Import-Secrets.ps1 @@ -31,7 +31,7 @@ if (-not $kokorodir) { new-item -type directory -path $tempfile $kokorodir = $tempfile @($secrets, $credentials, $privatekeyfile, $certfile) | ForEach-Object { - gsutil cp gs://cloud-devrel-kokoro-resources/dotnet-docs-samples/$_ (Join-Path $kokorodir $_) + gcloud storage cp gs://cloud-devrel-kokoro-resources/dotnet-docs-samples/$_ (Join-Path $kokorodir $_) } } & (Join-Path $kokorodir $secrets) diff --git a/.kokoro-windows/New-BuildEnv.ps1 b/.kokoro-windows/New-BuildEnv.ps1 index c4aa7afb2c7..fa1c869a863 100644 --- a/.kokoro-windows/New-BuildEnv.ps1 +++ b/.kokoro-windows/New-BuildEnv.ps1 @@ -61,7 +61,7 @@ if (-not $SkipDownloadKokoroDir) { $env:KOKORO_GFILE_DIR = Join-Path $Dir 'kokoro' (New-Item -Path $env:KOKORO_GFILE_DIR -ItemType Directory -Force).FullName # Copy all the files from our kokoro secrets bucket. - gsutil -m cp gs://cloud-devrel-kokoro-resources/dotnet-docs-samples/* $env:KOKORO_GFILE_DIR + gcloud storage -m cp gs://cloud-devrel-kokoro-resources/dotnet-docs-samples/* $env:KOKORO_GFILE_DIR } # Prepare to unzip the files. diff --git a/.kokoro/build-local-docker.ps1 b/.kokoro/build-local-docker.ps1 index c11c99a3185..1906326379f 100644 --- a/.kokoro/build-local-docker.ps1 +++ b/.kokoro/build-local-docker.ps1 @@ -26,7 +26,7 @@ Push-Location try { # Copy secrets from google cloud storage to a local directory Set-Location ./local-docker - gsutil cp -r gs://cloud-devrel-kokoro-resources/dotnet-docs-samples/ . + gcloud storage cp --recursive gs://cloud-devrel-kokoro-resources/dotnet-docs-samples/ . # Build the local docker image. docker build --no-cache --build-arg KOKORO_GFILE_DIR=dotnet-docs-samples -t dotnet-docs-samples/kokoro . diff --git a/.kokoro/upload-secrets.ps1 b/.kokoro/upload-secrets.ps1 index 7fcbbf2ee70..2422a53644b 100644 --- a/.kokoro/upload-secrets.ps1 +++ b/.kokoro/upload-secrets.ps1 @@ -11,4 +11,4 @@ # WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the # License for the specific language governing permissions and limitations under # the License. -gsutil cp secrets.ps1 gs://cloud-devrel-kokoro-resources/dotnet-docs-samples/secrets.ps1 \ No newline at end of file +gcloud storage cp secrets.ps1 gs://cloud-devrel-kokoro-resources/dotnet-docs-samples/secrets.ps1 \ No newline at end of file From 96c979ee0f7759813552089f9119b17f9c5703c0 Mon Sep 17 00:00:00 2001 From: gurusai-voleti Date: Fri, 9 Jan 2026 14:31:03 +0530 Subject: [PATCH 2/2] Update New-BuildEnv.ps1 --- .kokoro-windows/New-BuildEnv.ps1 | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.kokoro-windows/New-BuildEnv.ps1 b/.kokoro-windows/New-BuildEnv.ps1 index fa1c869a863..f3e51005c27 100644 --- a/.kokoro-windows/New-BuildEnv.ps1 +++ b/.kokoro-windows/New-BuildEnv.ps1 @@ -61,7 +61,7 @@ if (-not $SkipDownloadKokoroDir) { $env:KOKORO_GFILE_DIR = Join-Path $Dir 'kokoro' (New-Item -Path $env:KOKORO_GFILE_DIR -ItemType Directory -Force).FullName # Copy all the files from our kokoro secrets bucket. - gcloud storage -m cp gs://cloud-devrel-kokoro-resources/dotnet-docs-samples/* $env:KOKORO_GFILE_DIR + gcloud storage cp gs://cloud-devrel-kokoro-resources/dotnet-docs-samples/* $env:KOKORO_GFILE_DIR } # Prepare to unzip the files. @@ -95,3 +95,4 @@ $buildToolsPath = Resolve-Path "$PSScriptRoot\..\BuildTools.psm1" "& '$importSecretsPath'", "Import-Module -DisableNameChecking '$buildToolsPath'") ` | Out-File -Force $Dir\Activate.ps1 +