Merge pull request #5937 from swagger-api/enable-sonatype-push-2.3.0

enabled push to sonatype
This commit is contained in:
Tony Tam 2017-06-27 17:21:00 -07:00 committed by GitHub
commit bc01c3c103
2 changed files with 24 additions and 0 deletions

View File

@ -99,3 +99,9 @@ script:
env:
- DOCKER_GENERATOR_IMAGE_NAME=swaggerapi/swagger-generator DOCKER_CODEGEN_CLI_IMAGE_NAME=swaggerapi/swagger-codegen-cli
after_success:
- if [ $SONATYPE_USERNAME ] && [ -z $TRAVIS_TAG ] && [ $TRAVIS_PULL_REQUEST == false ]; then
mvn clean deploy --settings .travis/settings.xml;
fi;

18
.travis/settings.xml Normal file
View File

@ -0,0 +1,18 @@
<settings>
<localRepository/>
<interactiveMode/>
<usePluginRegistry/>
<offline/>
<pluginGroups/>
<servers>
<server>
<id>sonatype-nexus-snapshots</id>
<username>${env.SONATYPE_USERNAME}</username>
<password>${env.SONATYPE_PASSWORD}</password>
</server>
</servers>
<mirrors/>
<proxies/>
<profiles/>
<activeProfiles/>
</settings>