Skip to content

Commit 60ecd47

Browse files
committed
[travis] Modify snapshot release to not pick up releases
1 parent ead3409 commit 60ecd47

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

travis/after_success.sh

+6-2
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,11 @@
33
# Get Project Repo
44
mybatis_repo=$(git config --get remote.origin.url 2>&1)
55
echo "Repo detected: ${mybatis_repo}"
6-
6+
7+
# Get Commit Message
8+
commit_message=$(git log --format=%B -n 1)
9+
echo "Current commit detected: ${commit_message}"
10+
711
# Get the Java version.
812
# Java 1.5 will give 15.
913
# Java 1.6 will give 16.
@@ -25,7 +29,7 @@ echo "Java detected: ${VER}"
2529
# 3. Deploy site (disabled)
2630
# a. Use -q option to only display Maven errors and warnings.
2731

28-
if [ "$mybatis_repo" == "https://github.com/mybatis/generator.git" ] && [ "$TRAVIS_PULL_REQUEST" == "false" ] && [ "$TRAVIS_BRANCH" == "master" ]; then
32+
if [ "$mybatis_repo" == "https://github.com/mybatis/generator.git" ] && [ "$TRAVIS_PULL_REQUEST" == "false" ] && [ "$TRAVIS_BRANCH" == "master" ] && [[ "$commit_message" != *"[maven-release-plugin]"* ]]; then
2933
if [ $VER == "18" ]; then
3034
# Deploy to Sonatype
3135
mvn clean deploy -q --settings ../travis/settings.xml

0 commit comments

Comments
 (0)