Skip to content

Commit 9f24b1b

Browse files
committed
[#2519] Migrate to release scripts for documentation publishing
1 parent 82340d1 commit 9f24b1b

File tree

3 files changed

+18
-1
lines changed

3 files changed

+18
-1
lines changed

ci/release/Jenkinsfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -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', 'hibernate-ci.frs.sourceforge.net']) {
214+
sshagent(['ed25519.Hibernate-CI.github.com', 'hibernate.filemgmt.jboss.org', 'jenkins.in.relation.to', 'hibernate-ci.frs.sourceforge.net']) {
215215
// performs documentation upload and Sonatype release
216216
// push to github
217217
withEnv([

documentation/build.gradle

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -138,3 +138,18 @@ def assembleDocumentationTask = tasks.register( 'assembleDocumentation' ) {
138138
}
139139

140140
assemble.dependsOn assembleDocumentationTask
141+
142+
def copyDocumentationForPublishingTask = tasks.register('copyDocumentationForPublishing', Copy) {
143+
// dependOn assembleDocumentationTask
144+
group 'Documentation'
145+
description 'Copy the documentation into the folder needed by the publishing script'
146+
147+
from project.layout.buildDirectory.dir( "asciidoc")
148+
from (project.layout.buildDirectory) {
149+
include 'javadocs/**'
150+
}
151+
152+
into rootProject.layout.buildDirectory.dir("staging-deploy/documentation")
153+
}
154+
155+
copyDocumentationForPublishing.dependsOn assembleDocumentationTask

release/build.gradle

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -263,6 +263,8 @@ def releasePrepareTask = tasks.register( "releasePrepare" ) {
263263

264264
dependsOn gitPreparationForReleaseTask
265265

266+
dependsOn ':documentation:copyDocumentationForPublishing'
267+
266268
finalizedBy releasePreparePostGitTask
267269
}
268270

0 commit comments

Comments
 (0)