Skip to content

Commit 49531a4

Browse files
authored
Merge pull request #57 from marko-bekhta/build/switch-to-maven-central
Switch to Maven Central publishing
2 parents f83b55d + 0e99152 commit 49531a4

File tree

1 file changed

+1
-7
lines changed

1 file changed

+1
-7
lines changed

ci/release/Jenkinsfile

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -59,13 +59,7 @@ pipeline {
5959
mavenLocalRepo: env.WORKSPACE_TMP + '/.m2repository') {
6060
configFileProvider([configFile(fileId: 'release.config.ssh', targetLocation: env.HOME + '/.ssh/config'),
6161
configFile(fileId: 'release.config.ssh.knownhosts', targetLocation: env.HOME + '/.ssh/known_hosts')]) {
62-
withCredentials([// TODO: Once we switch to maven-central publishing (from nexus2) we need to add a new credentials
63-
// to use the following env variable names to set the user/password:
64-
// - JRELEASER_MAVENCENTRAL_USERNAME
65-
// - JRELEASER_MAVENCENTRAL_TOKEN
66-
// Also use the new `credentialsId` for Maven Central, e.g.:
67-
// usernamePassword(credentialsId: '???????', passwordVariable: 'JRELEASER_MAVENCENTRAL_TOKEN', usernameVariable: 'JRELEASER_MAVENCENTRAL_USERNAME'),
68-
usernamePassword(credentialsId: 'ossrh.sonatype.org', passwordVariable: 'JRELEASER_NEXUS2_PASSWORD', usernameVariable: 'JRELEASER_NEXUS2_USERNAME'),
62+
withCredentials([usernamePassword(credentialsId: 'central.sonatype.com', passwordVariable: 'JRELEASER_MAVENCENTRAL_TOKEN', usernameVariable: 'JRELEASER_MAVENCENTRAL_USERNAME'),
6963
string(credentialsId: 'Hibernate-CI.github.com', variable: 'JRELEASER_GITHUB_TOKEN'),
7064
file(credentialsId: 'release.gpg.private-key', variable: 'RELEASE_GPG_PRIVATE_KEY_PATH'),
7165
string(credentialsId: 'release.gpg.passphrase', variable: 'JRELEASER_GPG_PASSPHRASE')]) {

0 commit comments

Comments
 (0)