File tree 1 file changed +6
-2
lines changed
1 file changed +6
-2
lines changed Original file line number Diff line number Diff line change 3
3
# Get Project Repo
4
4
mybatis_repo=$( git config --get remote.origin.url 2>&1 )
5
5
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
+
7
11
# Get the Java version.
8
12
# Java 1.5 will give 15.
9
13
# Java 1.6 will give 16.
@@ -25,7 +29,7 @@ echo "Java detected: ${VER}"
25
29
# 3. Deploy site (disabled)
26
30
# a. Use -q option to only display Maven errors and warnings.
27
31
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
29
33
if [ $VER == " 18" ]; then
30
34
# Deploy to Sonatype
31
35
mvn clean deploy -q --settings ../travis/settings.xml
You can’t perform that action at this time.
0 commit comments