Skip to content
This repository has been archived by the owner on Sep 27, 2023. It is now read-only.

chore: load samples secrets better #476

Closed
wants to merge 4 commits into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
10 changes: 5 additions & 5 deletions .kokoro/build.sh
Expand Up @@ -17,9 +17,9 @@ set -eo pipefail

## Get the directory of the build script
scriptDir=$(realpath $(dirname "${BASH_SOURCE[0]}"))

## cd to the parent directory, i.e. the root of the git repo
cd ${scriptDir}/..

# include common functions
source ${scriptDir}/common.sh

Expand Down Expand Up @@ -72,10 +72,10 @@ samples)
if [[ -f samples/pom.xml ]]
then
# TODO: load this better
if [ -f "${KOKORO_GFILE_DIR}/secret_manager/java-dlp-samples-secrets" ]
then
source "${KOKORO_GFILE_DIR}/secret_manager/java-dlp-samples-secrets"
fi
for FILE in ${KOKORO_GFILE_DIR}/secret_manager/*-samples-secrets; do
[[ -f "$FILE" ]] || continue
source "$FILE"
done

pushd samples
mvn -B \
Expand Down