Skip to content

Commit

Permalink
Add snapshot variable when building RCA (#83)
Browse files Browse the repository at this point in the history
Signed-off-by: Sruti Parthiban <partsrut@amazon.com>
  • Loading branch information
sruti1312 authored Nov 4, 2021
1 parent abd9df3 commit 75dc06e
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
File renamed without changes.
10 changes: 5 additions & 5 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down Expand Up @@ -511,7 +511,7 @@ List<Provider<RegularFile>> 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"
Expand All @@ -526,7 +526,7 @@ List<Provider<RegularFile>> 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) {
Expand Down Expand Up @@ -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"
Expand Down

0 comments on commit 75dc06e

Please sign in to comment.