File tree Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -509,14 +509,14 @@ class ChangeLogFile {
509
509
}
510
510
511
511
private static getVersionId (jsonReleaseNotes , String restReleaseVersion ) {
512
- def fixVersions = jsonReleaseNotes. issues. get( 0 ) . fields . fixVersions
513
-
514
- for ( def fixVersion : fixVersions ) {
515
- if ( fixVersion . name . equals( restReleaseVersion ) ) {
516
- return fixVersion . id
512
+ for ( def issue : jsonReleaseNotes. issues ) {
513
+ for ( def fixVersion : issue . fields . fixVersions ) {
514
+ if ( fixVersion. name == restReleaseVersion ) {
515
+ return fixVersion . id
516
+ }
517
517
}
518
518
}
519
- throw new GradleException ( " Unable to determine the version id of the current release. " )
519
+ throw new GradleException (" No issues found for current release version ( " + restReleaseVersion + " ), aborting. " )
520
520
}
521
521
}
522
522
You can’t perform that action at this time.
0 commit comments