Skip to content
This repository was archived by the owner on Feb 24, 2026. It is now read-only.

Commit 0491bcb

Browse files
ci: wire in secret manager for samples ITs (#776)
1 parent f514a25 commit 0491bcb

4 files changed

Lines changed: 10 additions & 2 deletions

File tree

.kokoro/build.sh

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -78,6 +78,11 @@ samples)
7878

7979
if [[ -f ${SAMPLES_DIR}/pom.xml ]]
8080
then
81+
if [ -f "${KOKORO_GFILE_DIR}/secret_manager/java-bigquerystorage-samples-secrets" ]
82+
then
83+
source "${KOKORO_GFILE_DIR}/secret_manager/java-bigquerystorage-samples-secrets"
84+
fi
85+
8186
pushd ${SAMPLES_DIR}
8287
mvn -B \
8388
-Penable-samples \

.kokoro/nightly/samples.cfg

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ env_vars: {
2929

3030
env_vars: {
3131
key: "SECRET_MANAGER_KEYS"
32-
value: "java-docs-samples-service-account"
32+
value: "java-docs-samples-service-account, java-bigquerystorage-samples-secrets"
3333
}
3434

3535
env_vars: {

.kokoro/presubmit/samples.cfg

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,5 +29,5 @@ env_vars: {
2929

3030
env_vars: {
3131
key: "SECRET_MANAGER_KEYS"
32-
value: "java-docs-samples-service-account"
32+
value: "java-docs-samples-service-account, java-bigquerystorage-samples-secrets"
3333
}

synth.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,4 +37,7 @@
3737

3838
java.common_templates(excludes=[
3939
'renovate.json' # excluding due to common-lang3 dep added to renovate.json
40+
'.kokoro/build.sh',
41+
'.kokoro/nightly/samples.cfg',
42+
'.kokoro/presubmit/samples.cfg',
4043
])

0 commit comments

Comments
 (0)