From 2c1675716d78b66be776bad9c0877c16195dcdf2 Mon Sep 17 00:00:00 2001 From: Tianzi Cai Date: Tue, 19 May 2020 15:17:27 -0700 Subject: [PATCH] chore: read env variables --- .kokoro/run_samples_tests.sh | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/.kokoro/run_samples_tests.sh b/.kokoro/run_samples_tests.sh index 23f89f072..5f1e8a27f 100644 --- a/.kokoro/run_samples_tests.sh +++ b/.kokoro/run_samples_tests.sh @@ -28,6 +28,10 @@ cd ${scriptDir}/.. # include common functions source ${scriptDir}/common.sh +# Setup required env variables +source ${KOKORO_GFILE_DIR}/pubsub_secrets.txt +echo "********** Successfully Set All Environment Variables **********" + # Attempt to install 3 times with exponential backoff (starting with 10 seconds) retry_with_backoff 3 10 \ mvn install -B -V \ @@ -48,4 +52,4 @@ cd samples/ echo -e "\n******************** RUNNING SAMPLE TESTS ********************" -mvn --fail-at-end clean verify \ No newline at end of file +mvn --fail-at-end clean verify