Skip to content

Commit dfbdab5

Browse files
committed
Add sample test env variable
1 parent b3b7d16 commit dfbdab5

File tree

2 files changed

+3
-6
lines changed

2 files changed

+3
-6
lines changed

.cloudbuild/samples_build.yaml

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -13,11 +13,6 @@ steps:
1313
]
1414
- name: gcr.io/cloud-devrel-public-resources/java8
1515
entrypoint: pwd
16-
- name: gcr.io/cloud-devrel-public-resources/java8
17-
entrypoint: echo
18-
args: [
19-
'${JAVA11_HOME}'
20-
]
2116
- name: gcr.io/cloud-devrel-public-resources/java8
2217
entrypoint: bash
2318
args: [
@@ -27,7 +22,7 @@ steps:
2722
- 'JOB_TYPE=samples'
2823
- 'GOOGLE_CLOUD_PROJECT=cloud-java-ci-sample'
2924
- 'KOKORO_GITHUB_PULL_REQUEST_NUMBER=$_PR_NUMBER'
30-
- 'SUREFIRE_JVM_OPT=-Djvm=${JAVA11_HOME}/bin/java'
25+
- 'SUREFIRE_JVM_OPT=-Djvm=/usr/lib/jvm/java-11-openjdk-amd64/bin/java'
3126
- name: gcr.io/cloud-devrel-public-resources/java8
3227
entrypoint: echo
3328
args: [

.kokoro/build.sh

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -82,6 +82,8 @@ graalvm17)
8282
;;
8383
samples)
8484
SAMPLES_DIR=samples
85+
echo "SUREFIRE_JVM_OPT: ${SUREFIRE_JVM_OPT}"
86+
echo "Java 11: ${JAVA11_HOME}"
8587
# only run ITs in snapshot/ on presubmit PRs. run ITs in all 3 samples/ subdirectories otherwise.
8688
if [[ ! -z ${KOKORO_GITHUB_PULL_REQUEST_NUMBER} ]]
8789
then

0 commit comments

Comments
 (0)