Skip to content

Commit 9184ae6

Browse files
committed
reset GOOGLE_APPLICATION_CREDENTIALS
1 parent 0f5b349 commit 9184ae6

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

.kokoro/build.sh

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,6 @@ retry_with_backoff 3 10 \
3838
-T 1C
3939

4040
# if GOOGLE_APPLICATION_CREDENTIALS is specified as a relative path, prepend Kokoro root directory onto it
41-
bash .kokoro/populate-secrets.sh
4241
if [[ ! -z "${GOOGLE_APPLICATION_CREDENTIALS}" && "${GOOGLE_APPLICATION_CREDENTIALS}" != /* ]]; then
4342
export GOOGLE_APPLICATION_CREDENTIALS=$(realpath ${KOKORO_GFILE_DIR}/${GOOGLE_APPLICATION_CREDENTIALS})
4443
fi
@@ -74,6 +73,10 @@ integration)
7473
graalvmA)
7574
# Run Unit and Integration Tests with Native Image
7675
echo "HELLOOOO"
76+
bash .kokoro/populate-secrets.sh
77+
if [[ ! -z "${GOOGLE_APPLICATION_CREDENTIALS}" && "${GOOGLE_APPLICATION_CREDENTIALS}" != /* ]]; then
78+
export GOOGLE_APPLICATION_CREDENTIALS=$(realpath ${KOKORO_GFILE_DIR}/${GOOGLE_APPLICATION_CREDENTIALS})
79+
fi
7780
mvn -B ${INTEGRATION_TEST_ARGS} -ntp -Pnative -Pnative-test test -pl 'oauth2_http'
7881
RETURN_CODE=$?
7982
;;

0 commit comments

Comments
 (0)