summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJason Tedor <jason@tedor.me>2017-11-01 15:21:18 -0400
committerJason Tedor <jason@tedor.me>2017-11-01 15:21:18 -0400
commitac9addd454056f4bb8483c0eb8679be6bcb3d13d (patch)
treeaf70d42ff7b591199b0e38fcc83bbd0157517ae8
parentd6d830ff0ba4e2338359acbdddc72b33b944a5f7 (diff)
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.
-rw-r--r--distribution/bwc/build.gradle2
1 files changed, 1 insertions, 1 deletions
diff --git a/distribution/bwc/build.gradle b/distribution/bwc/build.gradle
index c84c6a6d5a..245d719709 100644
--- a/distribution/bwc/build.gradle
+++ b/distribution/bwc/build.gradle
@@ -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}"