@@ -165,24 +165,18 @@ pipeline {
165165 configFile(fileId : ' release.config.ssh' , targetLocation : " ${ env.HOME} /.ssh/config" ),
166166 configFile(fileId : ' release.config.ssh.knownhosts' , targetLocation : " ${ env.HOME} /.ssh/known_hosts" )
167167 ]) {
168- withCredentials([
169- usernamePassword(credentialsId : ' ossrh.sonatype.org' , passwordVariable : ' OSSRH_PASSWORD' , usernameVariable : ' OSSRH_USER' ),
170- usernamePassword(credentialsId : ' gradle-plugin-portal-api-key' , passwordVariable : ' PLUGIN_PORTAL_PASSWORD' , usernameVariable : ' PLUGIN_PORTAL_USERNAME' ),
171- file(credentialsId : ' release.gpg.private-key' , variable : ' SIGNING_GPG_PRIVATE_KEY_PATH' ),
172- string(credentialsId : ' release.gpg.passphrase' , variable : ' SIGNING_GPG_PASSPHRASE' )
173- ]) {
174- sshagent([' ed25519.Hibernate-CI.github.com' , ' hibernate.filemgmt.jboss.org' , ' hibernate-ci.frs.sourceforge.net' ]) {
175- // set release version
176- // update changelog from JIRA
177- // tags the version
178- // changes the version to the provided development version
179- withEnv([
180- " BRANCH=${ env.GIT_BRANCH} " ,
181- // Increase the amount of memory for this part since asciidoctor doc rendering consumes a lot of metaspace
182- " GRADLE_OPTS=-Dorg.gradle.jvmargs='-Dlog4j2.disableJmx -Xmx4g -XX:MaxMetaspaceSize=768m -XX:+HeapDumpOnOutOfMemoryError -Duser.language=en -Duser.country=US -Duser.timezone=UTC -Dfile.encoding=UTF-8'"
183- ]) {
184- sh " .release/scripts/prepare-release.sh ${ env.PROJECT} ${ env.RELEASE_VERSION} ${ env.DEVELOPMENT_VERSION} "
185- }
168+
169+ sshagent([' ed25519.Hibernate-CI.github.com' , ' hibernate.filemgmt.jboss.org' , ' hibernate-ci.frs.sourceforge.net' ]) {
170+ // set release version
171+ // update changelog from JIRA
172+ // tags the version
173+ // changes the version to the provided development version
174+ withEnv([
175+ " BRANCH=${ env.GIT_BRANCH} " ,
176+ // Increase the amount of memory for this part since asciidoctor doc rendering consumes a lot of metaspace
177+ " GRADLE_OPTS=-Dorg.gradle.jvmargs='-Dlog4j2.disableJmx -Xmx4g -XX:MaxMetaspaceSize=768m -XX:+HeapDumpOnOutOfMemoryError -Duser.language=en -Duser.country=US -Duser.timezone=UTC -Dfile.encoding=UTF-8'"
178+ ]) {
179+ sh " .release/scripts/prepare-release.sh ${ env.PROJECT} ${ env.RELEASE_VERSION} ${ env.DEVELOPMENT_VERSION} "
186180 }
187181 }
188182 }
@@ -199,10 +193,10 @@ pipeline {
199193 configFile(fileId : ' release.config.ssh.knownhosts' , targetLocation : " ${ env.HOME} /.ssh/known_hosts" )
200194 ]) {
201195 withCredentials([
202- usernamePassword( credentialsId : ' ossrh. sonatype.org ' , passwordVariable : ' OSSRH_PASSWORD ' , usernameVariable : ' OSSRH_USER ' ),
203- usernamePassword(credentialsId : ' gradle-plugin-portal-api-key ' , passwordVariable : ' PLUGIN_PORTAL_PASSWORD ' , usernameVariable : ' PLUGIN_PORTAL_USERNAME ' ),
204- file(credentialsId : ' release.gpg.private-key' , variable : ' RELEASE_GPG_PRIVATE_KEY_PATH ' ),
205- string(credentialsId : ' release.gpg.passphrase' , variable : ' RELEASE_GPG_PASSPHRASE ' )
196+ // https://github.com/gradle-nexus/publish-plugin#publishing-to-maven-central-via- sonatype-ossrh
197+ usernamePassword(credentialsId : ' ossrh.sonatype.org ' , passwordVariable : ' ORG_GRADLE_PROJECT_sonatypePassword ' , usernameVariable : ' ORG_GRADLE_PROJECT_sonatypeUsername ' ),
198+ file(credentialsId : ' release.gpg.private-key' , variable : ' SIGNING_GPG_PRIVATE_KEY_PATH ' ),
199+ string(credentialsId : ' release.gpg.passphrase' , variable : ' SIGNING_GPG_PASSPHRASE ' )
206200 gitUsernamePassword(credentialsId : ' username-and-token.Hibernate-CI.github.com' , gitToolName : ' Default' )
207201 ]) {
208202 sshagent([' ed25519.Hibernate-CI.github.com' , ' hibernate.filemgmt.jboss.org' , ' hibernate-ci.frs.sourceforge.net' ]) {
0 commit comments