Skip to content

Commit f314059

Browse files
committed
Travis: Fix bug preventing versions from being detected.
1 parent c07c758 commit f314059

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

travis/before_install.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
#!/bin/bash
22
#set version from travis_tag if it found
3-
if [[ $TRAVIS_TAG =~ ^[0-9]+\.[0-9]+\.[0-9]+(-[0-9A-Za-z-]+)?$ ]]; then
3+
if [[ $TRAVIS_TAG =~ ^v[0-9]+\.[0-9]+\.[0-9]+(-[0-9A-Za-z-]+)?$ ]]; then
44
echo "Setting build version from tag $TRAVIS_TAG!"
55
myVer=$(echo $TRAVIS_TAG | sed -e s/^v//)
66
mvn versions:set "-DnewVersion=$myVer"

0 commit comments

Comments
 (0)