diff --git a/distribution/pom.xml b/distribution/pom.xml
index 871c37cacc..4517e79ee1 100644
--- a/distribution/pom.xml
+++ b/distribution/pom.xml
@@ -176,4 +176,39 @@
+
+
+
+ release
+
+ ${rootProject.directory}/target/staging-deploy/
+
+
+
+
+ org.apache.maven.plugins
+ maven-assembly-plugin
+
+
+ ${basedir}/src/main/assembly/docs.xml
+
+ false
+ documentation
+ posix
+ ${documentation.staging.dir}
+
+
+
+ stage-documentation
+ install
+
+ single
+
+
+
+
+
+
+
+
diff --git a/distribution/src/main/assembly/docs.xml b/distribution/src/main/assembly/docs.xml
new file mode 100644
index 0000000000..164cdafa84
--- /dev/null
+++ b/distribution/src/main/assembly/docs.xml
@@ -0,0 +1,28 @@
+
+
+
+
+ docs
+
+ dir
+
+
+ .
+
+
+
+
+ target/site/javadocs/apidocs
+ api
+
+
+ ../documentation/target/dist
+ reference
+
+
+
+
+
diff --git a/jenkins/release/Jenkinsfile b/jenkins/release/Jenkinsfile
index b3b2c9bb78..d2cd25713b 100644
--- a/jenkins/release/Jenkinsfile
+++ b/jenkins/release/Jenkinsfile
@@ -72,7 +72,7 @@ pipeline {
string(credentialsId: 'release.gpg.passphrase', variable: 'JRELEASER_GPG_PASSPHRASE'),
usernamePassword(credentialsId: 'central.sonatype.com', passwordVariable: 'JRELEASER_MAVENCENTRAL_TOKEN', usernameVariable: 'JRELEASER_MAVENCENTRAL_USERNAME'),
string(credentialsId: 'Hibernate-CI.github.com', variable: 'JRELEASER_GITHUB_TOKEN')]) {
- sshagent(['ed25519.Hibernate-CI.github.com', 'hibernate.filemgmt.jboss.org', 'hibernate-ci.frs.sourceforge.net']) {
+ sshagent(['ed25519.Hibernate-CI.github.com', 'hibernate.filemgmt.jboss.org', 'jenkins.in.relation.to', 'hibernate-ci.frs.sourceforge.net']) {
sh 'cat $HOME/.ssh/config'
dir('.release/scripts') {
sh 'git clone https://github.com/hibernate/hibernate-release-scripts.git .'