support publishing snapshots from docker based ci (#8634)

motivation: automate snapshot publishing from docker based ci

changes:
* add local settings.xml with env variables for publishing to sonatype-nexus-snapshots
* pipe UID/PWD env variable in docker compose
This commit is contained in:
tomer doron 2018-12-06 20:43:06 -08:00 committed by Norman Maurer
parent 51a650979f
commit 2b651eb1a2
2 changed files with 12 additions and 0 deletions

9
.mvn/settings.xml Normal file
View File

@ -0,0 +1,9 @@
<settings>
<servers>
<server>
<id>sonatype-nexus-snapshots</id>
<username>${env.SANOTYPE_USER}</username>
<password>${env.SANOTYPE_PASSWORD}</password>
</server>
</servers>
</settings>

View File

@ -31,6 +31,9 @@ services:
shell:
<<: *common
environment:
- SANOTYPE_USER
- SANOTYPE_PASSWORD
volumes:
- ~/.ssh:/root/.ssh
- ~/.gnupg:/root/.gnupg