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:
8
8
timeout : " 3600s"
9
9
10
10
steps :
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
+
11
28
# Build SDK and run all V1 test suites sequentially
12
29
- name : " node:20"
13
30
id : " build-sdk-and-test-v1"
43
60
# Artifacts to store
44
61
artifacts :
45
62
objects :
46
- location : " gs://${PROJECT_ID} -test-results/${BUILD_ID}"
63
+ location : " gs://functions-integration-tests -test-results/${BUILD_ID}"
47
64
paths :
48
65
- " logs/**/*.log"
Original file line number Diff line number Diff line change @@ -8,6 +8,23 @@ options:
8
8
timeout : " 3600s"
9
9
10
10
steps :
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
+
11
28
# Build SDK and run all V2 test suites sequentially
12
29
# Using the official Google Cloud SDK image which includes gcloud pre-installed
13
30
- name : " gcr.io/google.com/cloudsdktool/cloud-sdk:stable"
58
75
# Artifacts to store
59
76
artifacts :
60
77
objects :
61
- location : " gs://${PROJECT_ID} -test-results/${BUILD_ID}"
78
+ location : " gs://functions-integration-tests-v2 -test-results/${BUILD_ID}"
62
79
paths :
63
80
- " logs/**/*.log"
You can’t perform that action at this time.
0 commit comments