Skip to content

Commit 5ddae42

Browse files
committed
Test mvn deploy
1 parent f658915 commit 5ddae42

File tree

2 files changed

+19
-1
lines changed

2 files changed

+19
-1
lines changed

Jenkinsfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ pipeline {
1616
steps {
1717
withCredentials([file(credentialsId: 'secret-subkeys.asc', variable: 'KEYRING'),string(credentialsId: 'gpg-passphrase', variable: 'MAVEN_GPG_PASSPHRASE')]) {
1818
wrap([$class: 'Xvnc', useXauthority: true]) {
19-
sh 'mvn clean verify -B -Dmaven.test.error.ignore=true -Dmaven.test.failure.ignore=true -Psign -Dmaven.repo.local=$WORKSPACE/.m2/repository -Dtycho.pgp.signer.bc.secretKeys="${KEYRING}"'
19+
sh 'mvn clean publish -B -Dmaven.test.error.ignore=true -Dmaven.test.failure.ignore=true -Psign -Pmvndeploy -Dmaven.repo.local=$WORKSPACE/.m2/repository -Dtycho.pgp.signer.bc.secretKeys="${KEYRING}"'
2020
}
2121
}
2222
}

pom.xml

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -134,6 +134,24 @@
134134
<tycho.test.platformArgs>-XstartOnFirstThread</tycho.test.platformArgs>
135135
</properties>
136136
</profile>
137+
<profile>
138+
<id>mvndeploy</id>
139+
<build>
140+
<plugins>
141+
<plugin>
142+
<groupId>org.sonatype.central</groupId>
143+
<artifactId>central-publishing-maven-plugin</artifactId>
144+
<version>0.8.0</version>
145+
<extensions>true</extensions>
146+
<configuration>
147+
<publishingServerId>central</publishingServerId>
148+
<centralSnapshotsUrl>
149+
https://central.sonatype.com/repository/maven-snapshots/</centralSnapshotsUrl>
150+
</configuration>
151+
</plugin>
152+
</plugins>
153+
</build>
154+
</profile>
137155
</profiles>
138156
<modules>
139157
<module>org.eclipse.shellwax.core</module>

0 commit comments

Comments
 (0)