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 3 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
[[ -e "$FILE" ]] || break
Neenu1995 marked this conversation as resolved.
Show resolved Hide resolved
source "$FILE"
done

pushd samples
mvn -B \
Expand Down