Skip to content

Commit 5c40b45

Browse files
committed
Release job: update the hibernate.org website automatically for micros
1 parent 3674647 commit 5c40b45

File tree

1 file changed

+27
-0
lines changed

1 file changed

+27
-0
lines changed

ci/release/Jenkinsfile

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -215,6 +215,33 @@ pipeline {
215215
}
216216
}
217217
}
218+
stage('Update website') {
219+
steps {
220+
script {
221+
checkoutReleaseScripts()
222+
223+
configFileProvider([
224+
configFile(fileId: 'release.config.ssh', targetLocation: "${env.HOME}/.ssh/config"),
225+
configFile(fileId: 'release.config.ssh.knownhosts', targetLocation: "${env.HOME}/.ssh/known_hosts")
226+
]) {
227+
withCredentials([
228+
gitUsernamePassword(credentialsId: 'username-and-token.Hibernate-CI.github.com', gitToolName: 'Default')
229+
]) {
230+
sshagent( ['ed25519.Hibernate-CI.github.com', 'hibernate.filemgmt.jboss.org', 'hibernate-ci.frs.sourceforge.net'] ) {
231+
dir( '.release/hibernate.org' ) {
232+
checkout scmGit(
233+
branches: [[name: '*/production']],
234+
extensions: [],
235+
userRemoteConfigs: [[credentialsId: 'ed25519.Hibernate-CI.github.com', url: 'https://github.com/hibernate/hibernate.org.git']]
236+
)
237+
sh "../scripts/website-release.sh ${env.SCRIPT_OPTIONS} ${env.PROJECT} ${env.RELEASE_VERSION}"
238+
}
239+
}
240+
}
241+
}
242+
}
243+
}
244+
}
218245
}
219246
post {
220247
always {

0 commit comments

Comments
 (0)