Gradle clean failing after a failed gradle check, folders created by Docker under 'root' user (#1726)
Signed-off-by: Andriy Redko <andriy.redko@aiven.io>
This commit is contained in:
parent
3ed3fca4ae
commit
546eacc3dd
|
@ -155,6 +155,10 @@ opensearch_distributions {
|
|||
|
||||
tasks.named("preProcessFixture").configure {
|
||||
dependsOn opensearch_distributions.docker
|
||||
// always run the task, otherwise the folders won't be created
|
||||
outputs.upToDateWhen {
|
||||
false
|
||||
}
|
||||
doLast {
|
||||
// tests expect to have an empty repo
|
||||
project.delete(
|
||||
|
@ -262,3 +266,7 @@ subprojects { Project subProject ->
|
|||
}
|
||||
}
|
||||
}
|
||||
|
||||
tasks.named("composeUp").configure {
|
||||
dependsOn preProcessFixture
|
||||
}
|
||||
|
|
|
@ -51,8 +51,12 @@ opensearch_distributions {
|
|||
}
|
||||
}
|
||||
|
||||
preProcessFixture {
|
||||
tasks.named("preProcessFixture").configure {
|
||||
dependsOn opensearch_distributions.docker
|
||||
// always run the task, otherwise the folders won't be created
|
||||
outputs.upToDateWhen {
|
||||
false
|
||||
}
|
||||
doLast {
|
||||
// tests expect to have an empty repo
|
||||
project.delete(
|
||||
|
@ -86,3 +90,7 @@ tasks.register("integTest", Test) {
|
|||
}
|
||||
|
||||
tasks.named("check").configure { dependsOn "integTest" }
|
||||
|
||||
tasks.named("composeUp").configure {
|
||||
dependsOn preProcessFixture
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue