From 05b09f9afd62de7c45c740eb298d9f16552713a6 Mon Sep 17 00:00:00 2001 From: Finn Carroll Date: Mon, 20 May 2024 17:28:28 +0000 Subject: [PATCH] Strip SNAPSHOT tag from bundle versions. Signed-off-by: Finn Carroll --- build.gradle | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/build.gradle b/build.gradle index 2dc9e03c..3d2e0dc6 100644 --- a/build.gradle +++ b/build.gradle @@ -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" @@ -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) {