Skip to content

Commit

Permalink
ci: update Kokoro root directory (#882)
Browse files Browse the repository at this point in the history
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
  • Loading branch information
stephaniewang526 committed Oct 28, 2020
1 parent 89cb654 commit 9f48a91
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .kokoro/run_samples_resource_cleanup.sh
Expand Up @@ -34,7 +34,7 @@ echo "********** Successfully Set All Environment Variables **********"

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

# Activate service account
Expand All @@ -49,4 +49,4 @@ cd samples/snippets

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

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

0 comments on commit 9f48a91

Please sign in to comment.