Skip to content

Commit

Permalink
Kokoro perf test fix - gcloud storage command not working (#1248)
Browse files Browse the repository at this point in the history
  • Loading branch information
Tulsishah authored Jul 28, 2023
1 parent 56a1232 commit 0ca0033
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@

BUCKET_NAME=$1
PROJECT_ID=$2
gcloud storage buckets create gs://$BUCKET_NAME --project=$PROJECT_ID --location=us-west1 --uniform-bucket-level-access 2> ~/output.txt
gcloud alpha storage buckets create gs://$BUCKET_NAME --project=$PROJECT_ID --location=us-west1 --uniform-bucket-level-access 2> ~/output.txt
if [ $? -eq 1 ]; then
if grep "HTTPError 409" ~/output.txt; then
echo "Bucket already exist."
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,4 +15,4 @@

BUCKET_NAME=$1

gcloud storage rm --recursive gs://$BUCKET_NAME/
gcloud alpha storage rm --recursive gs://$BUCKET_NAME/

0 comments on commit 0ca0033

Please sign in to comment.