diff --git a/github_release_notes.md b/github_release_notes.md new file mode 100644 index 000000000..caedf9c03 --- /dev/null +++ b/github_release_notes.md @@ -0,0 +1,3 @@ + +* See the [website](https://hibernate.org/validator/releases/{{releaseVersionFamily}}) for requirements and compatibilities. +* See the [What's New](https://docs.hibernate.org/validator/{{releaseVersionFamily}}/whats-new/en-US/html_single/) guide for details about new features and capabilities. diff --git a/jenkins/release/Jenkinsfile b/jenkins/release/Jenkinsfile index 9f585e9aa..9952c21cd 100644 --- a/jenkins/release/Jenkinsfile +++ b/jenkins/release/Jenkinsfile @@ -75,10 +75,12 @@ pipeline { sshagent(['ed25519.Hibernate-CI.github.com', 'jenkins.in.relation.to', 'hibernate-ci.frs.sourceforge.net']) { sh 'cat $HOME/.ssh/config' dir('.release/scripts') { - sh 'git clone --branch test/github-releases https://github.com/hibernate/hibernate-release-scripts.git .' + sh 'git clone https://github.com/hibernate/hibernate-release-scripts.git .' } + def ghReleaseNote = sh(script: 'realpath -e github_release_notes.md 2>/dev/null', returnStdout: true).trim() sh """ bash -xe .release/scripts/release.sh -j ${params.RELEASE_DRY_RUN ? '-d' : ''} \ + ${ghReleaseNote != '' ? '--notes=' + ghReleaseNote : ''} \ validator ${releaseVersion.toString()} ${developmentVersion.toString()} """ }