There was an error while loading. Please reload this page.
1 parent 0517ebd commit 89cb654Copy full SHA for 89cb654
.kokoro/run_samples_resource_cleanup.sh
@@ -32,6 +32,11 @@ source ${scriptDir}/common.sh
32
source ${KOKORO_GFILE_DIR}/secret_manager/java-bigquery-samples-secrets
33
echo "********** Successfully Set All Environment Variables **********"
34
35
+# if GOOGLE_APPLICATION_CREDIENTIALS is specified as a relative path prepend Kokoro root directory onto it
36
+if [[ ! -z "${GOOGLE_APPLICATION_CREDENTIALS}" && "${GOOGLE_APPLICATION_CREDENTIALS}" != /* ]]; then
37
+ export GOOGLE_APPLICATION_CREDENTIALS=$(realpath ${KOKORO_GFILE_DIR}/${GOOGLE_APPLICATION_CREDENTIALS})
38
+fi
39
+
40
# Activate service account
41
gcloud auth activate-service-account \
42
--key-file="$GOOGLE_APPLICATION_CREDENTIALS" \
0 commit comments