HHH-18861 - Improve GitHub release announcement body for automated releases

This commit is contained in:
Steve Ebersole 2024-12-03 21:24:29 -06:00
parent caf7f85b5f
commit a72d94a704
1 changed files with 5 additions and 1 deletions

View File

@ -53,6 +53,9 @@ def checkoutReleaseScripts() {
}
}
File findReleaseNotes() {
}
// --------------------------------------------
// Pipeline
@ -148,6 +151,7 @@ pipeline {
env.RELEASE_VERSION = releaseVersion.toString()
env.DEVELOPMENT_VERSION = developmentVersion.toString()
def notesFiles = findFiles(glob: 'release_notes.md')
if ( notesFiles.length < 1 ) {
throw new IllegalStateException( "Could not locate `release_notes.md`" )
@ -156,7 +160,7 @@ pipeline {
throw new IllegalStateException( "Located more than 1 `release_notes.md`" )
}
def notesFile = notesFile[0]
def notesFile = notesFiles[0]
if ( !notesFile.exists ) {
throw new IllegalStateException( "File `release_notes.md` does not exist" )
}