Browse Source

Fixes release pattern

A recent change to the ./mvnw script changed output slightly and broke
the logic which detected versions. This fixes it.
pull/572/head
Adrian Cole 8 years ago
parent
commit
0142f0cd9b
  1. 2
      travis/publish.sh

2
travis/publish.sh

@ -60,7 +60,7 @@ check_release_tag() { @@ -60,7 +60,7 @@ check_release_tag() {
}
is_release_commit() {
project_version=$(./mvnw help:evaluate -N -Dexpression=project.version|grep -v '\[')
project_version=$(./mvnw help:evaluate -N -Dexpression=project.version|sed -n '/^[0-9]/p')
if [[ "$project_version" =~ ^[[:digit:]]+\.[[:digit:]]+\.[[:digit:]]+$ ]]; then
echo "Build started by release commit $project_version. Will synchronize to maven central."
return 0

Loading…
Cancel
Save