@@ -92,9 +92,9 @@ pipeline {
9292 stage(' Release check' ) {
9393 steps {
9494 script {
95- print " INFO: params.RELEASE_VERSION = ${ params.RELEASE_VERSION} "
96- print " INFO: params.DEVELOPMENT_VERSION = ${ params.DEVELOPMENT_VERSION} "
97- print " INFO: params.RELEASE_DRY_RUN? = ${ params.RELEASE_DRY_RUN} "
95+ print " INFO: params.RELEASE_VERSION = ${ params.RELEASE_VERSION} "
96+ print " INFO: params.DEVELOPMENT_VERSION = ${ params.DEVELOPMENT_VERSION} "
97+ print " INFO: params.RELEASE_DRY_RUN? = ${ params.RELEASE_DRY_RUN} "
9898
9999 checkoutReleaseScripts()
100100
@@ -111,7 +111,9 @@ pipeline {
111111 echo " Release was requested manually"
112112
113113 if ( ! params. RELEASE_VERSION ) {
114- throw new IllegalArgumentException ( ' Missing value for parameter RELEASE_VERSION. This parameter must be set explicitly to prevent mistakes.' )
114+ throw new IllegalArgumentException (
115+ ' Missing value for parameter RELEASE_VERSION. This parameter must be set explicitly to prevent mistakes.'
116+ )
115117 }
116118 releaseVersion = Version . parseReleaseVersion( params. RELEASE_VERSION )
117119
@@ -168,20 +170,20 @@ pipeline {
168170 configFile(fileId : ' release.config.ssh' , targetLocation : " ${ env.HOME} /.ssh/config" ),
169171 configFile(fileId : ' release.config.ssh.knownhosts' , targetLocation : " ${ env.HOME} /.ssh/known_hosts" )
170172 ]) {
171- sshagent([' ed25519.Hibernate-CI.github.com' , ' hibernate.filemgmt.jboss.org' , ' hibernate-ci.frs.sourceforge.net' ]) {
172- // set release version
173- // update changelog from JIRA
174- // tags the version
175- // changes the version to the provided development version
176- withEnv([
177- " BRANCH=${ env.GIT_BRANCH} " ,
178- " DISABLE_REMOTE_GRADLE_CACHE=true" ,
179- // Increase the amount of memory for this part since asciidoctor doc rendering consumes a lot of metaspace
180- " 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'"
181- ]) {
182- sh " .release/scripts/prepare-release.sh ${ env.PROJECT} ${ env.RELEASE_VERSION} ${ env.DEVELOPMENT_VERSION} "
183- }
184- }
173+ sshagent([' ed25519.Hibernate-CI.github.com' , ' hibernate.filemgmt.jboss.org' , ' hibernate-ci.frs.sourceforge.net' ]) {
174+ // set release version
175+ // update changelog from JIRA
176+ // tags the version
177+ // changes the version to the provided development version
178+ withEnv([
179+ " BRANCH=${ env.GIT_BRANCH} " ,
180+ " DISABLE_REMOTE_GRADLE_CACHE=true" ,
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+ }
186+ }
185187 }
186188 }
187189 }
0 commit comments