Skip to content

Commit 7ea72d5

Browse files
authored
2.x: safeguard against building with v1 tags (#5219)
1 parent 1b60b12 commit 7ea72d5

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

gradle/buildViaTravis.sh

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,13 @@
11
#!/bin/bash
22
# This script will build the project.
33

4+
buildTag="$TRAVIS_TAG"
5+
6+
if [ "$buildTag" != "" ] && [ "${buildTag:0:3}" != "v2." ]; then
7+
echo -e "Wrong tag on the 2.x brach: $buildTag : build stopped"
8+
exit 1
9+
fi
10+
411
GRADLE_OPTS=-Xmx832m
512

613
if [ "$TRAVIS_PULL_REQUEST" != "false" ]; then

0 commit comments

Comments
 (0)