From a41f800e7657b56639c1945e1ed1351e417a6d3e Mon Sep 17 00:00:00 2001 From: Zelin Hao Date: Mon, 9 Jan 2023 15:39:41 -0800 Subject: [PATCH] Dynamically set bwc current version from properties version Signed-off-by: Zelin Hao --- build.gradle | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/build.gradle b/build.gradle index edf1e56df..d0e7fc1c9 100644 --- a/build.gradle +++ b/build.gradle @@ -389,6 +389,7 @@ String bwcBundleVersion = "1.3.2.0" Boolean bwcBundleTest = (project.findProperty('customDistributionDownloadType') != null && project.properties['customDistributionDownloadType'] == "bundle"); String bwcVersion = bwcBundleTest ? bwcBundleVersion : bwcMinVersion +String currentBundleVersion = opensearch_version.replace("-SNAPSHOT","") String baseName = "adBwcCluster" String bwcFilePath = "src/test/resources/org/opensearch/ad/bwc/" String bwcJobSchedulerPath = bwcFilePath + "job-scheduler/" @@ -400,7 +401,7 @@ String bwcAnomalyDetectionPath = bwcFilePath + "anomaly-detection/" testDistribution = "ARCHIVE" numberOfNodes = 3 if (bwcBundleTest) { - versions = ["1.3.2", "2.5.0"] + versions = ["1.3.2", currentBundleVersion] nodes.each { node -> node.extraConfigFile("kirk.pem", file("src/test/resources/security/kirk.pem")) node.extraConfigFile("kirk-key.pem", file("src/test/resources/security/kirk-key.pem"))