We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c07c758 commit f314059Copy full SHA for f314059
travis/before_install.sh
@@ -1,6 +1,6 @@
1
#!/bin/bash
2
#set version from travis_tag if it found
3
-if [[ $TRAVIS_TAG =~ ^[0-9]+\.[0-9]+\.[0-9]+(-[0-9A-Za-z-]+)?$ ]]; then
+if [[ $TRAVIS_TAG =~ ^v[0-9]+\.[0-9]+\.[0-9]+(-[0-9A-Za-z-]+)?$ ]]; then
4
echo "Setting build version from tag $TRAVIS_TAG!"
5
myVer=$(echo $TRAVIS_TAG | sed -e s/^v//)
6
mvn versions:set "-DnewVersion=$myVer"
0 commit comments