Skip to content

Commit 9f48a91

Browse files
ci: update Kokoro root directory (#882)
To run nightly samples resource cleanup jobs. Still observing: ``` ERROR: (gcloud.auth.activate-service-account) Unable to read file [/tmpfs/src/gfile/service-acct.json]: [Errno 2] No such file or directory: '/tmpfs/src/gfile/service-acct.json' ``` https://g3c.corp.google.com/results/invocations/cc95e6ae-5986-430d-b69e-ef87696ba02c/targets/cloud-devrel%2Fclient-libraries%2Fjava%2Fjava-bigquery%2Fnightly%2Fsamples/log
1 parent 89cb654 commit 9f48a91

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

.kokoro/run_samples_resource_cleanup.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ echo "********** Successfully Set All Environment Variables **********"
3434

3535
# if GOOGLE_APPLICATION_CREDIENTIALS is specified as a relative path prepend Kokoro root directory onto it
3636
if [[ ! -z "${GOOGLE_APPLICATION_CREDENTIALS}" && "${GOOGLE_APPLICATION_CREDENTIALS}" != /* ]]; then
37-
export GOOGLE_APPLICATION_CREDENTIALS=$(realpath ${KOKORO_GFILE_DIR}/${GOOGLE_APPLICATION_CREDENTIALS})
37+
export GOOGLE_APPLICATION_CREDENTIALS=$(realpath ${KOKORO_GFILE_DIR}/secret_manager/${GOOGLE_APPLICATION_CREDENTIALS})
3838
fi
3939

4040
# Activate service account
@@ -49,4 +49,4 @@ cd samples/snippets
4949

5050
echo -e "\n******************** NIGHTLY RESOURCE CLEAN UP ********************"
5151

52-
mvn compile exec:java -Dexec.mainClass=com.example.bigquery.ResourceCleanUp
52+
mvn compile exec:java -Dexec.mainClass=com.example.bigquery.ResourceCleanUp

0 commit comments

Comments
 (0)