Skip to content

Commit 37e5e19

Browse files
authored
ci: specify pull request environment variable for sample builds (#2178)
The build.sh has a logic to narrow the scope of the tests when it runs on a pull request. It uses an environmental variable. # Previous Attempt https://cloud.google.com/build/docs/optimize-builds/increase-vcpu-for-builds#increase_vcpu_for_default_pools machineType: 'N1_HIGHCPU_8' [The previous build](https://togithub.com/googleapis/java-bigtable/runs/22940962946) took 24 minutes. => It turned out this didn't help.
1 parent 79988b2 commit 37e5e19

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

.cloudbuild/samples_build.yaml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@ steps:
2222
- 'JOB_TYPE=samples'
2323
- 'GOOGLE_CLOUD_PROJECT=cloud-java-ci-sample'
2424
- 'BIGTABLE_TESTING_INSTANCE=instance'
25+
- 'KOKORO_GITHUB_PULL_REQUEST_NUMBER=$_PR_NUMBER'
2526
- name: gcr.io/cloud-devrel-public-resources/java8
2627
entrypoint: echo
2728
args: [
@@ -30,5 +31,3 @@ steps:
3031
timeout: 3600s
3132
options:
3233
defaultLogsBucketBehavior: REGIONAL_USER_OWNED_BUCKET
33-
34-

0 commit comments

Comments
 (0)