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