File tree Expand file tree Collapse file tree 1 file changed +5
-1
lines changed
Expand file tree Collapse file tree 1 file changed +5
-1
lines changed Original file line number Diff line number Diff line change 1919# Get Project Repo
2020mybatis_repo=$( git config --get remote.origin.url 2>&1 )
2121echo " Repo detected: ${mybatis_repo} "
22+
23+ # Get Commit Message
24+ commit_message=$( git log --format=%B -n 1)
25+ echo " Current commit detected: ${commit_message} "
2226
2327# Get the Java version.
2428# Java 1.5 will give 15.
@@ -42,7 +46,7 @@ echo "Java detected: ${VER}"
4246# 2. Deploy site
4347# 3. Use -q option to only display Maven errors and warnings.
4448
45- if [ " $mybatis_repo " == " https://github.com/mybatis/mybatis-3.git" ] && [ " $TRAVIS_PULL_REQUEST " == " false" ] && [ " $TRAVIS_BRANCH " == " master" ]; then
49+ if [ " $mybatis_repo " == " https://github.com/mybatis/mybatis-3.git" ] && [ " $TRAVIS_PULL_REQUEST " == " false" ] && [ " $TRAVIS_BRANCH " == " master" ] && [[ " $commit_message " != * " [maven-release-plugin] " * ]] ; then
4650 if [ $VER == " 16" ]; then
4751 mvn clean deploy -q --settings ./travis/settings.xml
4852 echo -e " Successfully deployed SNAPSHOT artifacts to Sonatype under Travis job ${TRAVIS_JOB_NUMBER} "
You can’t perform that action at this time.
0 commit comments