Skip to content

Commit

Permalink
Dynamically set bwc current version from properties version (#778)
Browse files Browse the repository at this point in the history
Signed-off-by: Zelin Hao <[email protected]>
  • Loading branch information
zelinh authored Feb 2, 2023
1 parent e58e2e0 commit ca746f5
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -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/"
Expand All @@ -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"))
Expand Down

0 comments on commit ca746f5

Please sign in to comment.