Skip to content

Commit

Permalink
set application_credentials env variable
Browse files Browse the repository at this point in the history
  • Loading branch information
mpeddada1 committed Nov 20, 2024
1 parent be5000b commit b5162f0
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions .kokoro/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -74,10 +74,11 @@ graalvmA)
# Run Unit and Integration Tests with Native Image
echo "HELLOOOO"
bash .kokoro/populate-secrets.sh
if [[ ! -z "${GOOGLE_APPLICATION_CREDENTIALS}" && "${GOOGLE_APPLICATION_CREDENTIALS}" != /* ]]; then
echo "HELLO1"
export GOOGLE_APPLICATION_CREDENTIALS=$(realpath ${KOKORO_GFILE_DIR}/${GOOGLE_APPLICATION_CREDENTIALS})
fi
export GOOGLE_APPLICATION_CREDENTIALS=${KOKORO_GFILE_DIR}/${GOOGLE_APPLICATION_CREDENTIALS}
# if [[ ! -z "${GOOGLE_APPLICATION_CREDENTIALS}" && "${GOOGLE_APPLICATION_CREDENTIALS}" != /* ]]; then
# echo "HELLO1"
# export GOOGLE_APPLICATION_CREDENTIALS=$(realpath ${KOKORO_GFILE_DIR}/${GOOGLE_APPLICATION_CREDENTIALS})
# fi
mvn -B ${INTEGRATION_TEST_ARGS} -ntp -Pnative -Pnative-test test -pl 'oauth2_http'
RETURN_CODE=$?
;;
Expand Down

0 comments on commit b5162f0

Please sign in to comment.