Skip to content

Commit

Permalink
Strip SNAPSHOT tag from bundle versions.
Browse files Browse the repository at this point in the history
Signed-off-by: Finn Carroll <[email protected]>
  • Loading branch information
finnegancarroll committed May 20, 2024
1 parent a674353 commit 05b09f9
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -268,6 +268,9 @@ When testing between major versions note that ONLY the latest minor release of t
String bwcVersion = "2.15.0.0"
String bwcVersionShort = bwcVersion.replaceAll(/\.0+$/, "")

String nxtVersion = opensearch_version
String nxtVersionShort = nxtVersion.replaceAll(/\.0+$/, "").replaceAll("-SNAPSHOT", "")

String baseName = "asynSearchCluster"
String bwcFilePath = "src/test/resources/org/opensearch/search/asynchronous/bwc/"
String bwcRemoteFile = "https://ci.opensearch.org/ci/dbc/distribution-build-opensearch/" + bwcVersionShort + "/latest/linux/x64/tar/builds/opensearch/plugins/opensearch-asynchronous-search-" + bwcVersion + ".zip"
Expand All @@ -277,7 +280,7 @@ String bwcRemoteFile = "https://ci.opensearch.org/ci/dbc/distribution-build-open
testClusters {
"${baseName}$i" {
testDistribution = "ARCHIVE"
versions = [bwcVersionShort, opensearch_version]
versions = [bwcVersionShort, nxtVersionShort]
numberOfNodes = 3

if (!bwcBundleTest) {
Expand Down

0 comments on commit 05b09f9

Please sign in to comment.