mirror of
https://github.com/honeymoose/OpenSearch.git
synced 2025-03-24 17:09:48 +00:00
Fix stable BWC branch detection logic
This commit fixes the logic for finding the stable BWC branch. A .x branch should only be chosen if we are testing BWC with a previous major version.
This commit is contained in:
parent
d6d830ff0b
commit
ac9addd454
@ -56,7 +56,7 @@ if (enabled) {
|
||||
def (String major, String minor, String bugfix) = bwcVersion.split('\\.')
|
||||
def (String currentMajor, String currentMinor, String currentBugfix) = version.split('\\.')
|
||||
String bwcBranch
|
||||
if (project.name == 'bwc-stable-snapshot') {
|
||||
if (project.name == 'bwc-stable-snapshot' && major != currentMajor) {
|
||||
bwcBranch = "${major}.x"
|
||||
} else {
|
||||
bwcBranch = "${major}.${minor}"
|
||||
|
Loading…
x
Reference in New Issue
Block a user