We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 0299b5f commit f5ae11aCopy full SHA for f5ae11a
bwc-test/build.gradle
@@ -84,15 +84,9 @@ String baseName = "customCodecsBwcCluster"
84
String bwcFilePath = "src/test/resources/"
85
String projectVersion = nextVersion
86
87
-String previousOpenSearch = extractVersion(previousVersion) + "-SNAPSHOT";
88
-String nextOpenSearch = extractVersion(nextVersion) + "-SNAPSHOT";
89
-
90
// Extracts the OpenSearch version from a plugin version string, 2.11.0.0 -> 2.11.0.
91
-def String extractVersion(versionStr) {
92
- def versionMatcher = versionStr =~ /(.+?)(\.\d+)$/
93
- versionMatcher.find()
94
- return versionMatcher.group(1)
95
-}
+String previousOpenSearch = previousVersion.tokenize('-')[0][0..-3] + "-SNAPSHOT"
+String nextOpenSearch = nextVersion.tokenize('-')[0][0..-3] + "-SNAPSHOT"
96
97
2.times {i ->
98
testClusters {
0 commit comments