Skip to content

Commit de646c6

Browse files
author
Ajay Kannan
committed
Add message before exit and make find more specific in docs script
1 parent 7742d0e commit de646c6

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

utilities/after_success.sh

+1
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ if [ "${TRAVIS_JDK_VERSION}" == "oraclejdk7" ]; then
1414
SITE_VERSION=$(mvn org.apache.maven.plugins:maven-help-plugin:2.1.1:evaluate -Dexpression=project.version | grep -Ev '(^\[|\w+:)')
1515
echo "Used the maven-help-plugin to determine that the version is $SITE_VERSION"
1616
if [ "$SITE_VERSION" == "" ]; then
17+
echo "Could not determine the version, so we're exiting."
1718
exit 1
1819
fi
1920
if [ "${SITE_VERSION##*-}" != "SNAPSHOT" ]; then

utilities/update_docs_version.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ RELEASED_VERSION=$(mvn org.apache.maven.plugins:maven-help-plugin:2.1.1:evaluate
1010
if [ "${RELEASED_VERSION##*-}" != "SNAPSHOT" ]; then
1111
echo "Changing version to $RELEASED_VERSION in README files"
1212
# Get list of directories for which README.md must be updated
13-
module_folders=($(find . -maxdepth 2 -name 'gcloud-java*' -type d) .)
13+
module_folders=($(find . -maxdepth 2 \( -regex "./gcloud-java-[a-z]*" -o -regex "./gcloud-java-contrib/gcloud-java-[a-z]*" \) -type d) . ./gcloud-java)
1414
for item in ${module_folders[*]}
1515
do
1616
sed -ri "s/<version>[0-9]+\.[0-9]+\.[0-9]+<\/version>/<version>${RELEASED_VERSION}<\/version>/g" ${item}/README.md

0 commit comments

Comments
 (0)