@@ -156,6 +156,39 @@ pipeline {
156
156
}
157
157
}
158
158
}
159
+ stage(' Release prepare' ) {
160
+ steps {
161
+ script {
162
+ checkoutReleaseScripts()
163
+
164
+ configFileProvider([
165
+ configFile(fileId : ' release.config.ssh' , targetLocation : " ${ env.HOME} /.ssh/config" ),
166
+ configFile(fileId : ' release.config.ssh.knownhosts' , targetLocation : " ${ env.HOME} /.ssh/known_hosts" )
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 : ' RELEASE_GPG_PRIVATE_KEY_PATH' ),
172
+ string(credentialsId : ' release.gpg.passphrase' , variable : ' RELEASE_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
+ }
186
+ }
187
+ }
188
+ }
189
+ }
190
+ }
191
+ }
159
192
stage(' Publish release' ) {
160
193
steps {
161
194
script {
0 commit comments