File tree Expand file tree Collapse file tree 2 files changed +36
-2
lines changed Expand file tree Collapse file tree 2 files changed +36
-2
lines changed Original file line number Diff line number Diff line change @@ -8,6 +8,23 @@ options:
88timeout : " 3600s"
99
1010steps :
11+ # Create storage bucket for test results if it doesn't exist
12+ - name : " gcr.io/google.com/cloudsdktool/cloud-sdk:stable"
13+ id : " create-bucket"
14+ entrypoint : " bash"
15+ args :
16+ - " -c"
17+ - |
18+ # Create bucket for test results if it doesn't exist
19+ BUCKET_NAME="gs://functions-integration-tests-test-results"
20+ echo "Checking if bucket $$BUCKET_NAME exists..."
21+ if ! gsutil ls "$$BUCKET_NAME" &>/dev/null; then
22+ echo "Creating bucket $$BUCKET_NAME..."
23+ gsutil mb -p "functions-integration-tests" "$$BUCKET_NAME"
24+ else
25+ echo "Bucket $$BUCKET_NAME already exists"
26+ fi
27+
1128 # Build SDK and run all V1 test suites sequentially
1229 - name : " node:20"
1330 id : " build-sdk-and-test-v1"
4360# Artifacts to store
4461artifacts :
4562 objects :
46- location : " gs://${PROJECT_ID} -test-results/${BUILD_ID}"
63+ location : " gs://functions-integration-tests -test-results/${BUILD_ID}"
4764 paths :
4865 - " logs/**/*.log"
Original file line number Diff line number Diff line change @@ -8,6 +8,23 @@ options:
88timeout : " 3600s"
99
1010steps :
11+ # Create storage bucket for test results if it doesn't exist
12+ - name : " gcr.io/google.com/cloudsdktool/cloud-sdk:stable"
13+ id : " create-bucket"
14+ entrypoint : " bash"
15+ args :
16+ - " -c"
17+ - |
18+ # Create bucket for test results if it doesn't exist
19+ BUCKET_NAME="gs://functions-integration-tests-v2-test-results"
20+ echo "Checking if bucket $$BUCKET_NAME exists..."
21+ if ! gsutil ls "$$BUCKET_NAME" &>/dev/null; then
22+ echo "Creating bucket $$BUCKET_NAME..."
23+ gsutil mb -p "functions-integration-tests-v2" "$$BUCKET_NAME"
24+ else
25+ echo "Bucket $$BUCKET_NAME already exists"
26+ fi
27+
1128 # Build SDK and run all V2 test suites sequentially
1229 # Using the official Google Cloud SDK image which includes gcloud pre-installed
1330 - name : " gcr.io/google.com/cloudsdktool/cloud-sdk:stable"
5875# Artifacts to store
5976artifacts :
6077 objects :
61- location : " gs://${PROJECT_ID} -test-results/${BUILD_ID}"
78+ location : " gs://functions-integration-tests-v2 -test-results/${BUILD_ID}"
6279 paths :
6380 - " logs/**/*.log"
You can’t perform that action at this time.
0 commit comments