mirror of
https://github.com/honeymoose/OpenSearch.git
synced 2025-03-08 03:49:38 +00:00
Test: update the branch logic for BWC tests
This commit updates the logic for determining which branch to use to make it consistent with the logic in elasticsearch. This change means that testing BWC within the same major picks the correct branch. Original commit: elastic/x-pack-elasticsearch@2d75d15c41
This commit is contained in:
parent
efb5b8827b
commit
9d85f377c7
@ -38,7 +38,7 @@ subprojects {
|
||||
def (String major, String minor, String bugfix) = bwcVersion.split('\\.')
|
||||
def (String currentMajor, String currentMinor, String currentBugfix) = version.split('\\.')
|
||||
String bwcBranch
|
||||
if (project.name == 'stable-snapshot') {
|
||||
if (project.name == 'stable-snapshot' && major != currentMajor) {
|
||||
bwcBranch = "${major}.x"
|
||||
} else {
|
||||
bwcBranch = "${major}.${minor}"
|
||||
|
Loading…
x
Reference in New Issue
Block a user