Skip to content

Commit 3a43b48

Browse files
marko-bekhtadreab8
authored andcommitted
Simplify the release process
1 parent 685583c commit 3a43b48

File tree

3 files changed

+21
-336
lines changed

3 files changed

+21
-336
lines changed

ci/release/Jenkinsfile

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -178,7 +178,7 @@ pipeline {
178178
configFile(fileId: 'release.config.ssh', targetLocation: "${env.HOME}/.ssh/config"),
179179
configFile(fileId: 'release.config.ssh.knownhosts', targetLocation: "${env.HOME}/.ssh/known_hosts")
180180
]) {
181-
sshagent(['ed25519.Hibernate-CI.github.com', 'hibernate.filemgmt.jboss.org', 'hibernate-ci.frs.sourceforge.net']) {
181+
sshagent(['ed25519.Hibernate-CI.github.com']) {
182182
// set release version
183183
// update changelog from JIRA
184184
// tags the version
@@ -211,7 +211,7 @@ pipeline {
211211
string(credentialsId: 'release.gpg.passphrase', variable: 'JRELEASER_GPG_PASSPHRASE'),
212212
string(credentialsId: 'Hibernate-CI.github.com', variable: 'JRELEASER_GITHUB_TOKEN')
213213
]) {
214-
sshagent(['ed25519.Hibernate-CI.github.com', 'hibernate.filemgmt.jboss.org', 'jenkins.in.relation.to', 'hibernate-ci.frs.sourceforge.net']) {
214+
sshagent(['ed25519.Hibernate-CI.github.com', 'jenkins.in.relation.to']) {
215215
// performs documentation upload and Sonatype release
216216
// push to github
217217
withEnv([
@@ -237,7 +237,7 @@ pipeline {
237237
withCredentials([
238238
gitUsernamePassword(credentialsId: 'username-and-token.Hibernate-CI.github.com', gitToolName: 'Default')
239239
]) {
240-
sshagent( ['ed25519.Hibernate-CI.github.com', 'hibernate.filemgmt.jboss.org', 'hibernate-ci.frs.sourceforge.net'] ) {
240+
sshagent( ['ed25519.Hibernate-CI.github.com'] ) {
241241
dir( '.release/hibernate.org' ) {
242242
checkout scmGit(
243243
branches: [[name: '*/production']],

publish.gradle

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -88,3 +88,11 @@ publishing {
8888
}
8989
}
9090
}
91+
92+
def releasePrepareTask = tasks.register("releasePrepare") {
93+
description "Prepares all the artifacts and documentation for a JReleaser release."
94+
group "Release"
95+
96+
// Create all the published artifacts (i.e. jars) and move them to the staging directory (for JReleaser):
97+
dependsOn publishAllPublicationsToStagingRepository
98+
}

0 commit comments

Comments
 (0)