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" {