Skip to content

Commit

Permalink
chore(java): detect sample-secrets in build.sh (#998)
Browse files Browse the repository at this point in the history
Fixes #904
  • Loading branch information
Neenu1995 committed Mar 24, 2021
1 parent ab68096 commit bb854b6
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions synthtool/gcp/templates/java_library/.kokoro/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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 \
Expand Down

0 comments on commit bb854b6

Please sign in to comment.