Skip to content

Commit 0d21d9e

Browse files
authored
EQL: Enable QA/rest integration tests for snapshot builds only (#51624) (#51645)
* Related to #51541: [CI] unknown setting [xpack.eql.enabled] in release-tests
1 parent 9dcc3ef commit 0d21d9e

File tree

1 file changed

+15
-7
lines changed

1 file changed

+15
-7
lines changed

x-pack/plugin/eql/build.gradle

Lines changed: 15 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
import org.elasticsearch.gradle.info.BuildParams
2+
13
evaluationDependsOn(xpackModule('core'))
24

35
apply plugin: 'elasticsearch.esplugin'
@@ -44,13 +46,19 @@ task internalClusterTest(type: Test) {
4446

4547
check.dependsOn internalClusterTest
4648

47-
// add all sub-projects of the qa sub-project
48-
gradle.projectsEvaluated {
49-
project.subprojects
50-
.find { it.path == project.path + ":qa" }
51-
.subprojects
52-
.findAll { it.path.startsWith(project.path + ":qa") }
53-
.each { check.dependsOn it.check }
49+
/****************************************************************
50+
* Enable QA/rest integration tests for snapshot builds only *
51+
* TODO: Enable for all builds upon this feature release *
52+
****************************************************************/
53+
if (BuildParams.isSnapshotBuild()) {
54+
// add all sub-projects of the qa sub-project
55+
gradle.projectsEvaluated {
56+
project.subprojects
57+
.find { it.path == project.path + ":qa" }
58+
.subprojects
59+
.findAll { it.path.startsWith(project.path + ":qa") }
60+
.each { check.dependsOn it.check }
61+
}
5462
}
5563

5664
/**********************************************

0 commit comments

Comments
 (0)