Skip to content

Commit 054eae8

Browse files
Merge pull request #731 from bradmwilliams/ocp5-previous-release-fix
Hard coding 5.0's previous release as 4.23
2 parents 7576afc + 72b5575 commit 054eae8

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

cmd/release-controller/jira.go

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -99,6 +99,10 @@ func (c *Controller) calculatePreviousReleaseTagForNightly(currentVersion semver
9999
targetMajor = 5
100100
targetMinor = 55
101101
klog.V(4).Infof("jira: special case for version 6.0, using hardcoded previous version 5.55 (test case)")
102+
} else if currentVersion.Major == 5 && currentVersion.Minor == 0 {
103+
targetMajor = 4
104+
targetMinor = 23
105+
klog.V(4).Infof("jira: special case for version 5.0, using hardcoded previous version 4.23")
102106
} else if currentVersion.Minor == 0 {
103107
return nil, fmt.Errorf("cannot calculate previous minor version for %d.%d", currentVersion.Major, currentVersion.Minor)
104108
} else {

0 commit comments

Comments
 (0)