From 0e375e6cd77447e108a2322bb99e369747ada45b Mon Sep 17 00:00:00 2001 From: Mark Vieira Date: Fri, 16 Aug 2019 10:30:14 -0700 Subject: [PATCH] Disable test runner task when not running with testclusters (#45659) --- .../org/elasticsearch/gradle/test/RestIntegTestTask.groovy | 1 + 1 file changed, 1 insertion(+) diff --git a/buildSrc/src/main/groovy/org/elasticsearch/gradle/test/RestIntegTestTask.groovy b/buildSrc/src/main/groovy/org/elasticsearch/gradle/test/RestIntegTestTask.groovy index 4617968949c..6dfb7cba666 100644 --- a/buildSrc/src/main/groovy/org/elasticsearch/gradle/test/RestIntegTestTask.groovy +++ b/buildSrc/src/main/groovy/org/elasticsearch/gradle/test/RestIntegTestTask.groovy @@ -63,6 +63,7 @@ class RestIntegTestTask extends DefaultTask { boolean usesTestclusters = project.plugins.hasPlugin(TestClustersPlugin.class) if (usesTestclusters == false) { clusterConfig = project.extensions.create("${name}Cluster", ClusterConfiguration.class, project) + runner.outputs.doNotCacheIf("Caching is disabled when using ClusterFormationTasks", { true }) } else { project.testClusters { "$name" {