Skip to content

Commit ac9addd

Browse files
committed
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.
1 parent d6d830f commit ac9addd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

distribution/bwc/build.gradle

+1-1
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ if (enabled) {
5656
def (String major, String minor, String bugfix) = bwcVersion.split('\\.')
5757
def (String currentMajor, String currentMinor, String currentBugfix) = version.split('\\.')
5858
String bwcBranch
59-
if (project.name == 'bwc-stable-snapshot') {
59+
if (project.name == 'bwc-stable-snapshot' && major != currentMajor) {
6060
bwcBranch = "${major}.x"
6161
} else {
6262
bwcBranch = "${major}.${minor}"

0 commit comments

Comments
 (0)