@@ -93,9 +93,9 @@ pipeline {
93
93
stage(' Release check' ) {
94
94
steps {
95
95
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} "
99
99
100
100
checkoutReleaseScripts()
101
101
@@ -112,7 +112,9 @@ pipeline {
112
112
echo " Release was requested manually"
113
113
114
114
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
+ )
116
118
}
117
119
releaseVersion = Version . parseReleaseVersion( params. RELEASE_VERSION )
118
120
@@ -171,20 +173,20 @@ pipeline {
171
173
configFile(fileId : ' release.config.ssh' , targetLocation : " ${ env.HOME} /.ssh/config" ),
172
174
configFile(fileId : ' release.config.ssh.knownhosts' , targetLocation : " ${ env.HOME} /.ssh/known_hosts" )
173
175
]) {
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
+ }
188
190
}
189
191
}
190
192
}
0 commit comments