Disable test runner task when not running with testclusters (#45659)

This commit is contained in:
Mark Vieira 2019-08-16 10:30:14 -07:00
parent e243bbdc2a
commit 0e375e6cd7
No known key found for this signature in database
GPG Key ID: CA947EF7E6D4B105
1 changed files with 1 additions and 0 deletions

View File

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