HHH-18861 - Improve GitHub release announcement body for automated releases
This commit is contained in:
parent
a72d94a704
commit
eb01cd06ee
|
@ -159,13 +159,7 @@ pipeline {
|
||||||
if ( notesFiles.length > 1 ) {
|
if ( notesFiles.length > 1 ) {
|
||||||
throw new IllegalStateException( "Located more than 1 `release_notes.md`" )
|
throw new IllegalStateException( "Located more than 1 `release_notes.md`" )
|
||||||
}
|
}
|
||||||
|
env.SCRIPT_OPTIONS = " --notes=${notesFiles[0].path}"
|
||||||
def notesFile = notesFiles[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 ) {
|
if ( params.RELEASE_DRY_RUN ) {
|
||||||
env.SCRIPT_OPTIONS += " -d"
|
env.SCRIPT_OPTIONS += " -d"
|
||||||
|
|
Loading…
Reference in New Issue