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..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. - gsutil -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 + 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