File tree Expand file tree Collapse file tree 1 file changed +10
-11
lines changed Expand file tree Collapse file tree 1 file changed +10
-11
lines changed Original file line number Diff line number Diff line change @@ -151,16 +151,6 @@ pipeline {
151
151
env. RELEASE_VERSION = releaseVersion. toString()
152
152
env. DEVELOPMENT_VERSION = developmentVersion. toString()
153
153
154
-
155
- def notesFiles = findFiles(glob : ' release_notes.md' )
156
- if ( notesFiles. length < 1 ) {
157
- throw new IllegalStateException ( " Could not locate `release_notes.md`" )
158
- }
159
- if ( notesFiles. length > 1 ) {
160
- throw new IllegalStateException ( " Located more than 1 `release_notes.md`" )
161
- }
162
- env. SCRIPT_OPTIONS = " --notes=${ notesFiles[0].path} "
163
-
164
154
if ( params. RELEASE_DRY_RUN ) {
165
155
env. SCRIPT_OPTIONS + = " -d"
166
156
}
@@ -265,8 +255,17 @@ pipeline {
265
255
steps {
266
256
script {
267
257
checkoutReleaseScripts()
258
+
259
+ def notesFiles = findFiles(glob : ' release_notes.md' )
260
+ if ( notesFiles. length < 1 ) {
261
+ throw new IllegalStateException ( " Could not locate `release_notes.md`" )
262
+ }
263
+ if ( notesFiles. length > 1 ) {
264
+ throw new IllegalStateException ( " Located more than 1 `release_notes.md`" )
265
+ }
266
+
268
267
withCredentials([string(credentialsId : ' Hibernate-CI.github.com' , variable : ' GITHUB_API_TOKEN' )]) {
269
- sh " .release/scripts/github-release.sh ${ env.SCRIPT_OPTIONS} ${ env.PROJECT} ${ env.RELEASE_VERSION} "
268
+ sh " .release/scripts/github-release.sh ${ env.SCRIPT_OPTIONS} --notes= ${ notesFiles[0].path } ${ env.PROJECT} ${ env.RELEASE_VERSION} "
270
269
}
271
270
}
272
271
}
You can’t perform that action at this time.
0 commit comments