Merge "Ignore non release versions when publishing latest docs"

This commit is contained in:
Jenkins 2015-10-15 20:46:51 +00:00 committed by Gerrit Code Review
commit 08bfbe0ea5

View File

@ -40,7 +40,7 @@ elif echo $ZUUL_REFNAME | grep refs/tags/ >/dev/null ; then
# now all projects use semver based versions instead of date based
# versions. The date versions will sort higher even though they
# should not so we just special case it here.
LATEST=$(git tag | sed -n -e '/^20[0-9]\{2\}\..*$/d' -e '/^\([0-9]\+\.\?\)\{1,3\}.*$/p' | sort -V | tail -1)
LATEST=$(git tag | sed -n -e '/^20[0-9]\{2\}\..*$/d' -e '/^[0-9]\+\(\.[0-9]\+\)*$/p' | sort -V | tail -1)
# Now publish to / and /$TAG if this is the latest version or
# just /$TAG if this is not the latest version.
if [ "$TAG" = "$LATEST" ] ; then