Skip to content

Commit ccda4b6

Browse files
committed
Get gpg passphrase from env when releasing (#153)
1 parent 13f0d46 commit ccda4b6

File tree

1 file changed

+30
-19
lines changed

1 file changed

+30
-19
lines changed

.ci/settings.xml

Lines changed: 30 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,30 @@
1-
<settings xmlns="http://maven.apache.org/SETTINGS/1.1.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/SETTINGS/1.1.0 http://maven.apache.org/xsd/settings-1.1.0.xsd">
2-
<localRepository>/var/lib/jenkins/.m2/repository</localRepository>
3-
<pluginGroups>
4-
<pluginGroup>org.apache.maven.plugins</pluginGroup>
5-
<pluginGroup>org.codehaus.mojo</pluginGroup>
6-
</pluginGroups>
7-
<servers>
8-
<server>
9-
<id>sonatype-nexus-snapshots</id>
10-
<username>${env.SERVER_USERNAME}</username>
11-
<password>${env.SERVER_PASSWORD}</password>
12-
</server>
13-
<server>
14-
<id>sonatype-nexus-staging</id>
15-
<username>${env.SERVER_USERNAME}</username>
16-
<password>${env.SERVER_PASSWORD}</password>
17-
</server>
18-
</servers>
19-
</settings>
1+
<settings xmlns="http://maven.apache.org/SETTINGS/1.1.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
2+
xsi:schemaLocation="http://maven.apache.org/SETTINGS/1.1.0 http://maven.apache.org/xsd/settings-1.1.0.xsd">
3+
<localRepository>/var/lib/jenkins/.m2/repository</localRepository>
4+
<pluginGroups>
5+
<pluginGroup>org.apache.maven.plugins</pluginGroup>
6+
<pluginGroup>org.codehaus.mojo</pluginGroup>
7+
</pluginGroups>
8+
<servers>
9+
<server>
10+
<id>sonatype-nexus-snapshots</id>
11+
<username>${env.SERVER_USERNAME}</username>
12+
<password>${env.SERVER_PASSWORD}</password>
13+
</server>
14+
<server>
15+
<id>sonatype-nexus-staging</id>
16+
<username>${env.SERVER_USERNAME}</username>
17+
<password>${env.SERVER_PASSWORD}</password>
18+
</server>
19+
</servers>
20+
<profiles>
21+
<profile>
22+
<activation>
23+
<activeByDefault>true</activeByDefault>
24+
</activation>
25+
<properties>
26+
<gpg.passphrase>${env.KEYPASS}</gpg.passphrase>
27+
</properties>
28+
</profile>
29+
</profiles>
30+
</settings>

0 commit comments

Comments
 (0)