Find CCR QA sub-projects automatically (#33027)
Today we are by-hand maintaining a list of CCR QA sub-projects that the check task depends on. This commit simplifies this by finding these sub-projects automatically and adding their check task as dependencies of the CCR check task.
This commit is contained in:
parent
b08d02e3b7
commit
9623cf6cde
|
@ -32,12 +32,17 @@ task internalClusterTest(type: RandomizedTestingTask,
|
||||||
systemProperty 'es.set.netty.runtime.available.processors', 'false'
|
systemProperty 'es.set.netty.runtime.available.processors', 'false'
|
||||||
}
|
}
|
||||||
|
|
||||||
|
check.dependsOn internalClusterTest
|
||||||
internalClusterTest.mustRunAfter test
|
internalClusterTest.mustRunAfter test
|
||||||
check.dependsOn(
|
|
||||||
internalClusterTest,
|
// add all sub-projects of the qa sub-project
|
||||||
'qa:multi-cluster:followClusterTest',
|
gradle.projectsEvaluated {
|
||||||
'qa:multi-cluster-with-incompatible-license:followClusterTest',
|
project.subprojects
|
||||||
'qa:multi-cluster-with-security:followClusterTest')
|
.find { it.path == project.path + ":qa" }
|
||||||
|
.subprojects
|
||||||
|
.findAll { it.path.startsWith(project.path + ":qa") }
|
||||||
|
.each { check.dependsOn it.check }
|
||||||
|
}
|
||||||
|
|
||||||
dependencies {
|
dependencies {
|
||||||
compileOnly "org.elasticsearch:elasticsearch:${version}"
|
compileOnly "org.elasticsearch:elasticsearch:${version}"
|
||||||
|
|
Loading…
Reference in New Issue