Skip to content

Commit

Permalink
move bwc constants to build script block
Browse files Browse the repository at this point in the history
Signed-off-by: Jackie Han <[email protected]>
  • Loading branch information
jackiehanyang committed Oct 21, 2022
1 parent f48deba commit c2ee2bf
Showing 1 changed file with 5 additions and 6 deletions.
11 changes: 5 additions & 6 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,11 @@ buildscript {
'opensearch/plugins/opensearch-anomaly-detection-2.4.0.0.zip'
bwcOpenSearchJSDownload = 'https://ci.opensearch.org/ci/dbc/distribution-build-opensearch/2.4.0/latest/linux/x64/tar/builds/' +
'opensearch/plugins/opensearch-job-scheduler-2.4.0.0.zip'
bwcVersion = "2.4.0.0"
baseName = "adBwcCluster"
bwcFilePath = "src/test/resources/org/opensearch/ad/bwc/"
bwcJobSchedulerPath = bwcFilePath + "job-scheduler/"
bwcAnomalyDetectionPath = bwcFilePath + "anomaly-detection/"

// gradle build won't print logs during test by default unless there is a failure.
// It is useful to record intermediately information like prediction precision and recall.
Expand Down Expand Up @@ -372,12 +377,6 @@ task integTestRemote(type: RestIntegTestTask) {
}
}

String bwcVersion = "2.4.0.0"
String baseName = "adBwcCluster"
String bwcFilePath = "src/test/resources/org/opensearch/ad/bwc/"
String bwcJobSchedulerPath = bwcFilePath + "job-scheduler/"
String bwcAnomalyDetectionPath = bwcFilePath + "anomaly-detection/"

2.times {i ->
testClusters {
"${baseName}$i" {
Expand Down

0 comments on commit c2ee2bf

Please sign in to comment.