mvn deploy for master only (#5946)

This commit is contained in:
wing328
2017-07-01 15:16:26 +08:00
committed by GitHub
parent fbd888d298
commit 7fa53773fc

View File

@@ -104,7 +104,7 @@ script:
after_success:
# push a snapshot version to maven repo
- if [ $SONATYPE_USERNAME ] && [ -z $TRAVIS_TAG ] && [ $TRAVIS_PULL_REQUEST == false ]; then
- if [ $SONATYPE_USERNAME ] && [ -z $TRAVIS_TAG ] && [ "$TRAVIS_BRANCH" = "master" ]; then
mvn clean deploy --settings .travis/settings.xml;
echo "Finished mvn clean deploy";
fi;