Skip to content

Commit b2284e1

Browse files
committed
HHH-18861 - Improve GitHub release announcement body for automated releases
1 parent 0878fbb commit b2284e1

File tree

2 files changed

+7
-12
lines changed

2 files changed

+7
-12
lines changed

ci/release/Jenkinsfile

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -147,7 +147,12 @@ pipeline {
147147

148148
env.RELEASE_VERSION = releaseVersion.toString()
149149
env.DEVELOPMENT_VERSION = developmentVersion.toString()
150-
env.SCRIPT_OPTIONS = params.RELEASE_DRY_RUN ? "-d" : ""
150+
151+
def matchingFiles = findFiles(glob: "/release_announcement.adoc")
152+
env.SCRIPT_OPTIONS = "--notes=${matchingFiles[0]}"
153+
if ( params.RELEASE_DRY_RUN ) {
154+
env.SCRIPT_OPTIONS += " -d"
155+
}
151156

152157
// Determine version id to check if Jira version exists
153158
sh ".release/scripts/determine-jira-version-id.sh ${env.JIRA_KEY} ${releaseVersion.withoutFinalQualifier}"

release-announcement.adoc

Lines changed: 1 addition & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,3 @@
1-
= Hibernate 7.0.0.Beta2
2-
Steve Ebersole
3-
:toc:
4-
:toclevels: 2
5-
:awestruct-tags: ["Hibernate ORM", "Releases"]
6-
:awestruct-layout: blog-post
7-
81
:family: 7.0
92

103
:docs-url: https://docs.jboss.org/hibernate/orm/{family}
@@ -14,9 +7,6 @@ Steve Ebersole
147
:user-guide-url: {docs-url}/userguide/html_single/Hibernate_User_Guide.html
158
:ql-guide-url: {docs-url}/querylanguage/html_single/Hibernate_Query_Language.html
169

17-
The Hibernate ORM 7.0 Beta2 release has just been published. Here are some highlights...
18-
19-
2010
[[jpa-32]]
2111
== Jakarta Persistence 3.2
2212

@@ -109,4 +99,4 @@ See the link:{user-guide-url}#associations-any[User Guide] for details.
10999
[[cleanup]]
110100
== Clean-up
111101

112-
A lot of deprecated contracts and behavior has been removed. See the link:{migration-guide-url}#cleanup[Migration Guide] for details.
102+
A lot of deprecated contracts and behavior has been removed. See the link:{migration-guide-url}#cleanup[Migration Guide] for details.

0 commit comments

Comments
 (0)