@@ -92,9 +92,9 @@ pipeline {
92
92
stage(' Release check' ) {
93
93
steps {
94
94
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} "
98
98
99
99
checkoutReleaseScripts()
100
100
@@ -111,7 +111,9 @@ pipeline {
111
111
echo " Release was requested manually"
112
112
113
113
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
+ )
115
117
}
116
118
releaseVersion = Version . parseReleaseVersion( params. RELEASE_VERSION )
117
119
@@ -168,20 +170,20 @@ pipeline {
168
170
configFile(fileId : ' release.config.ssh' , targetLocation : " ${ env.HOME} /.ssh/config" ),
169
171
configFile(fileId : ' release.config.ssh.knownhosts' , targetLocation : " ${ env.HOME} /.ssh/known_hosts" )
170
172
]) {
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
+ }
185
187
}
186
188
}
187
189
}
0 commit comments