From 75dc06e781cdaa74f4543877432de8592a426d3e Mon Sep 17 00:00:00 2001 From: Sruti Parthiban Date: Thu, 4 Nov 2021 12:34:20 -0700 Subject: [PATCH] Add snapshot variable when building RCA (#83) Signed-off-by: Sruti Parthiban --- LICENSE => LICENSE.txt | 0 build.gradle | 10 +++++----- 2 files changed, 5 insertions(+), 5 deletions(-) rename LICENSE => LICENSE.txt (100%) diff --git a/LICENSE b/LICENSE.txt similarity index 100% rename from LICENSE rename to LICENSE.txt diff --git a/build.gradle b/build.gradle index 50bd8ab6..ac264969 100644 --- a/build.gradle +++ b/build.gradle @@ -346,11 +346,11 @@ task buildRca() { doLast { exec { workingDir("$rcaProjectDir") - commandLine './gradlew', 'build', '-x', 'test', "-Dopensearch.version=${opensearch_version}" + commandLine './gradlew', 'build', '-x', 'test', "-Dopensearch.version=${opensearch_version}", "-Dbuild.snapshot=${isSnapshot}" } exec { workingDir("$rcaProjectDir") - commandLine './gradlew', 'publishToMavenLocal', "-Dopensearch.version=${opensearch_version}" + commandLine './gradlew', 'publishToMavenLocal', "-Dopensearch.version=${opensearch_version}", "-Dbuild.snapshot=${isSnapshot}" } exec { def licenseDir = "$projectDir/licenses" @@ -511,7 +511,7 @@ List> plugins = [ }) ] -// Creates 2 test clusters with 3 nodes of the old version. +// Creates 2 test clusters with 3 nodes of the old version. 2.times {i -> task "${baseName}#oldVersionClusterTask$i"(type: StandaloneRestIntegTestTask) { useCluster testClusters."${baseName}$i" @@ -526,7 +526,7 @@ List> plugins = [ } } -// Upgrades one node of the old cluster to new OpenSearch version with upgraded plugin version +// Upgrades one node of the old cluster to new OpenSearch version with upgraded plugin version // This results in a mixed cluster with 2 nodes on the old version and 1 upgraded node. // This is also used as a one third upgraded cluster for a rolling upgrade. task "${baseName}#mixedClusterTask"(type: StandaloneRestIntegTestTask) { @@ -584,7 +584,7 @@ task "${baseName}#rollingUpgradeClusterTask"(type: StandaloneRestIntegTestTask) nonInputProperties.systemProperty('tests.clustername', "${-> testClusters."${baseName}0".getName()}") } -// Upgrades all the nodes of the old cluster to new OpenSearch version with upgraded plugin version +// Upgrades all the nodes of the old cluster to new OpenSearch version with upgraded plugin version // at the same time resulting in a fully upgraded cluster. task "${baseName}#fullRestartClusterTask"(type: StandaloneRestIntegTestTask) { dependsOn "${baseName}#oldVersionClusterTask1"