Skip to content
This repository has been archived by the owner on Aug 2, 2022. It is now read-only.

Commit

Permalink
Fix numNodes property in gradle (#393)
Browse files Browse the repository at this point in the history
  • Loading branch information
dbbaughe authored Jan 26, 2021
1 parent 8d5b917 commit 7e52f26
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ apply plugin: 'org.jetbrains.kotlin.jvm'
apply plugin: 'org.jetbrains.kotlin.plugin.allopen'

def usingRemoteCluster = System.properties.containsKey('tests.rest.cluster') || System.properties.containsKey('tests.cluster')
def usingMultiNode = System.getProperty("numNodes")
def usingMultiNode = project.properties.containsKey('numNodes')
// Only apply jacoco test coverage if we are running a local single node cluster
if (!usingRemoteCluster && !usingMultiNode) {
apply from: 'build-tools/esplugin-coverage.gradle'
Expand Down Expand Up @@ -192,7 +192,7 @@ test {
}

File repo = file("$buildDir/testclusters/repo")
def _numNodes = System.getProperty("numNodes") as Integer ?: 1
def _numNodes = findProperty('numNodes') as Integer ?: 1
testClusters.integTest {
plugin(project.tasks.bundlePlugin.archiveFile)
testDistribution = "OSS"
Expand Down

0 comments on commit 7e52f26

Please sign in to comment.