From bb854b6c048619e3be4e8b8ce8ed10aa74ea78ef Mon Sep 17 00:00:00 2001 From: Neenu Shaji Date: Wed, 24 Mar 2021 15:50:02 -0400 Subject: [PATCH] chore(java): detect sample-secrets in build.sh (#998) Fixes #904 --- synthtool/gcp/templates/java_library/.kokoro/build.sh | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/synthtool/gcp/templates/java_library/.kokoro/build.sh b/synthtool/gcp/templates/java_library/.kokoro/build.sh index 013934555..0f0ac7946 100755 --- a/synthtool/gcp/templates/java_library/.kokoro/build.sh +++ b/synthtool/gcp/templates/java_library/.kokoro/build.sh @@ -79,6 +79,11 @@ samples) if [[ -f ${SAMPLES_DIR}/pom.xml ]] then + for FILE in ${KOKORO_GFILE_DIR}/secret_manager/*-samples-secrets; do + [[ -f "$FILE" ]] || continue + source "$FILE" + done + pushd ${SAMPLES_DIR} mvn -B \ -Penable-samples \