diff --git a/ci/release/Jenkinsfile b/ci/release/Jenkinsfile index d098754886..5c40b71ca2 100644 --- a/ci/release/Jenkinsfile +++ b/ci/release/Jenkinsfile @@ -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" ) }