@@ -165,24 +165,18 @@ pipeline {
165
165
configFile(fileId : ' release.config.ssh' , targetLocation : " ${ env.HOME} /.ssh/config" ),
166
166
configFile(fileId : ' release.config.ssh.knownhosts' , targetLocation : " ${ env.HOME} /.ssh/known_hosts" )
167
167
]) {
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} "
186
180
}
187
181
}
188
182
}
@@ -199,10 +193,10 @@ pipeline {
199
193
configFile(fileId : ' release.config.ssh.knownhosts' , targetLocation : " ${ env.HOME} /.ssh/known_hosts" )
200
194
]) {
201
195
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 ' )
206
200
gitUsernamePassword(credentialsId : ' username-and-token.Hibernate-CI.github.com' , gitToolName : ' Default' )
207
201
]) {
208
202
sshagent([' ed25519.Hibernate-CI.github.com' , ' hibernate.filemgmt.jboss.org' , ' hibernate-ci.frs.sourceforge.net' ]) {
0 commit comments