From caf7f85b5f801f46f0d163e6eb3b34d70030b967 Mon Sep 17 00:00:00 2001 From: Steve Ebersole Date: Tue, 3 Dec 2024 21:19:26 -0600 Subject: [PATCH] HHH-18861 - Improve GitHub release announcement body for automated releases --- ci/release/Jenkinsfile | 15 +++++++++++++-- 1 file changed, 13 insertions(+), 2 deletions(-) diff --git a/ci/release/Jenkinsfile b/ci/release/Jenkinsfile index 0af5fac7d4..d098754886 100644 --- a/ci/release/Jenkinsfile +++ b/ci/release/Jenkinsfile @@ -148,8 +148,19 @@ pipeline { env.RELEASE_VERSION = releaseVersion.toString() env.DEVELOPMENT_VERSION = developmentVersion.toString() - def notesFile = new File( "release_notes.md" ) - assert notesFile.exists + def notesFiles = findFiles(glob: 'release_notes.md') + if ( notesFiles.length < 1 ) { + throw new IllegalStateException( "Could not locate `release_notes.md`" ) + } + if ( notesFiles.length > 1 ) { + throw new IllegalStateException( "Located more than 1 `release_notes.md`" ) + } + + def notesFile = notesFile[0] + if ( !notesFile.exists ) { + throw new IllegalStateException( "File `release_notes.md` does not exist" ) + } + env.SCRIPT_OPTIONS = " --notes=${notesFile.absolutePath}" if ( params.RELEASE_DRY_RUN ) {