Skip to content

Commit

Permalink
ci: enable secrete manager for nightly resource cleanup (#872)
Browse files Browse the repository at this point in the history
Fixes `github/java-bigquery/.kokoro/run_samples_resource_cleanup.sh: line 32: /tmpfs/src/gfile/bigquery_secrets.txt: No such file or directory` seen in Fusion build logs: https://g3c.corp.google.com/results/invocations/55fae1ae-eb61-4308-90e6-c2b17d08ccd5/targets/cloud-devrel%2Fclient-libraries%2Fjava%2Fjava-bigquery%2Fnightly%2Fsamples/log
  • Loading branch information
stephaniewang526 authored Oct 26, 2020
1 parent 66551c3 commit 9f5fe9f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .kokoro/nightly/samples.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ env_vars: {

env_vars: {
key: "SECRET_MANAGER_KEYS"
value: "java-docs-samples-service-account"
value: "java-docs-samples-service-account, java-bigquery-samples-secrets"
}

env_vars: {
Expand Down
2 changes: 1 addition & 1 deletion .kokoro/run_samples_resource_cleanup.sh
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ cd ${scriptDir}/..
source ${scriptDir}/common.sh

# Setup required env variables
source ${KOKORO_GFILE_DIR}/bigquery_secrets.txt
source ${KOKORO_GFILE_DIR}/secret_manager/java-bigquery-samples-secrets
echo "********** Successfully Set All Environment Variables **********"

# Activate service account
Expand Down

0 comments on commit 9f5fe9f

Please sign in to comment.