diff --git a/docs/build.gradle b/docs/build.gradle index 93b7277327280..43b61ea97c089 100644 --- a/docs/build.gradle +++ b/docs/build.gradle @@ -178,8 +178,9 @@ testClusters.matching { it.name == "yamlRestTest"}.configureEach { } tasks.named("yamlRestTest").configure { + def repoFolder = "${layout.buildDirectory.asFile.get()}/cluster/shared/repo" doFirst { - delete("${buildDir}/cluster/shared/repo") + delete(repoFolder) } }