Skip to content

Commit 010256b

Browse files
authored
1.x: safeguard against building with 2.* tags (#4556)
1 parent 4ae4a40 commit 010256b

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
@@ -3,6 +3,13 @@
33

44
git fsck --full
55

6+
buildTag="$TRAVIS_TAG"
7+
8+
if [ "$buildTag" != "" ] && [ "${buildTag:0:3}" != "v1." ]; then
9+
echo -e "Wrong tag on the 1.x brach: $buildTag : build stopped"
10+
exit 1
11+
fi
12+
613
if [ "$TRAVIS_PULL_REQUEST" != "false" ]; then
714
echo -e "Build Pull Request #$TRAVIS_PULL_REQUEST => Branch [$TRAVIS_BRANCH]"
815
./gradlew -Prelease.useLastTag=true build --stacktrace

0 commit comments

Comments
 (0)