@@ -59,13 +59,7 @@ pipeline {
59
59
mavenLocalRepo : env. WORKSPACE_TMP + ' /.m2repository' ) {
60
60
configFileProvider([configFile(fileId : ' release.config.ssh' , targetLocation : env. HOME + ' /.ssh/config' ),
61
61
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' ),
69
63
string(credentialsId : ' Hibernate-CI.github.com' , variable : ' JRELEASER_GITHUB_TOKEN' ),
70
64
file(credentialsId : ' release.gpg.private-key' , variable : ' RELEASE_GPG_PRIVATE_KEY_PATH' ),
71
65
string(credentialsId : ' release.gpg.passphrase' , variable : ' JRELEASER_GPG_PASSPHRASE' )]) {
0 commit comments