From a3d13bc8c5a4e1d7a84ecedae74ad00566529983 Mon Sep 17 00:00:00 2001 From: Alexey Andreev Date: Thu, 16 Feb 2017 22:14:00 +0300 Subject: [PATCH] Skip `Download(ing): ` prefix when calculating project version --- .travis.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.travis.yml b/.travis.yml index d8a625527..760bd6ab3 100644 --- a/.travis.yml +++ b/.travis.yml @@ -11,7 +11,7 @@ branches: env: - MAVEN_OPTS="-Xmx1024m -XX:MaxPermSize=256m" before_install: - - OLD_VERSION=`mvn help:evaluate -Dexpression=project.version 2>/dev/null | grep -v "^\["` + - OLD_VERSION=`mvn help:evaluate -Dexpression=project.version 2>/dev/null | grep -Ev "(^\[|Download\w+:)"` - NEW_VERSION=${OLD_VERSION%-SNAPSHOT}-build-`printf %05d $TRAVIS_BUILD_NUMBER` - echo "Building version $NEW_VERSION" - mvn versions:set -DnewVersion=$NEW_VERSION