Skip to content

Commit 8b10b66

Browse files
committed
update cloudbuild to pull the PR changes
1 parent 034e46d commit 8b10b66

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
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: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ steps:
6868
# Execute the script on the VM via SSH.
6969
# Capture the exit code to ensure cleanup happens before the build fails.
7070
set +e
71-
gcloud compute ssh ${_VM_NAME} --zone=${_ZONE} --internal-ip --ssh-key-file=/workspace/.ssh/google_compute_engine --command="ulimit -n {_ULIMIT}; COMMIT_SHA=${COMMIT_SHA} _ZONAL_BUCKET=${_ZONAL_BUCKET} bash run_zonal_tests.sh"
71+
gcloud compute ssh ${_VM_NAME} --zone=${_ZONE} --internal-ip --ssh-key-file=/workspace/.ssh/google_compute_engine --command="ulimit -n {_ULIMIT}; COMMIT_SHA=${COMMIT_SHA} _ZONAL_BUCKET=${_ZONAL_BUCKET} _PR_NUMBER=${_PR_NUMBER} bash run_zonal_tests.sh"
7272
EXIT_CODE=$?
7373
set -e
7474

0 commit comments

Comments
 (0)