Skip to content

Commit d7772cb

Browse files
committed
fix
1 parent 4434902 commit d7772cb

File tree

1 file changed

+33
-0
lines changed

1 file changed

+33
-0
lines changed

ci/release/Jenkinsfile

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -156,6 +156,39 @@ pipeline {
156156
}
157157
}
158158
}
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+
}
159192
stage('Publish release') {
160193
steps {
161194
script {

0 commit comments

Comments
 (0)