Skip to content

Commit 7d63612

Browse files
committed
test cloud build changes
1 parent a8ced7e commit 7d63612

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

cloudbuild/run_zonal_tests.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ sudo apt-get update && sudo apt-get install -y git python3-pip python3-venv
66
# Clone the repository and checkout the specific commit from the build trigger.
77
git clone https://github.com/googleapis/python-storage.git
88
cd python-storage
9+
git fetch origin "refs/pull/${_PR_NUMBER}/head"
910
git checkout ${COMMIT_SHA}
1011

1112

cloudbuild/zb-system-tests-cloudbuild.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ steps:
5050
# Execute the script on the VM via SSH.
5151
# Capture the exit code to ensure cleanup happens before the build fails.
5252
set +e
53-
gcloud compute ssh gcsfs-test-vm-${_SHORT_BUILD_ID} --zone=${_ZONE} --internal-ip --command="COMMIT_SHA=${COMMIT_SHA} _ZONAL_BUCKET=${_ZONAL_BUCKET} bash run_zonal_tests.sh"
53+
gcloud compute ssh gcsfs-test-vm-${_SHORT_BUILD_ID} --zone=${_ZONE} --internal-ip --command="COMMIT_SHA=${COMMIT_SHA} _ZONAL_BUCKET=${_ZONAL_BUCKET} _PR_NUMBER=${_PR_NUMBER} bash run_zonal_tests.sh"
5454
EXIT_CODE=$?
5555
set -e
5656
@@ -67,4 +67,4 @@ timeout: "3600s" # 60 minutes
6767
options:
6868
logging: CLOUD_LOGGING_ONLY
6969
pool:
70-
name: "projects/${PROJECT_ID}/locations/us-central1/workerPools/cloud-build-worker-pool"
70+
name: "projects/${PROJECT_ID}/locations/us-central1/workerPools/cloud-build-worker-pool"

0 commit comments

Comments
 (0)