Skip to content

Commit b1c3772

Browse files
authored
[CI] Disable multi-project tests in non-snapshot build tests (#124261)
1 parent a5e0423 commit b1c3772

File tree

3 files changed

+9
-0
lines changed

3 files changed

+9
-0
lines changed

test/external-modules/multi-project/build.gradle

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,3 +17,7 @@ dependencies {
1717
tasks.withType(StandaloneRestIntegTestTask).configureEach {
1818
usesDefaultDistribution()
1919
}
20+
21+
tasks.named("javaRestTest").configure {
22+
enabled = buildParams.snapshotBuild
23+
}

x-pack/plugin/security/qa/multi-project/build.gradle

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,4 +6,5 @@ dependencies {
66

77
tasks.named('javaRestTest') {
88
usesDefaultDistribution()
9+
it.onlyIf("snapshot build") { buildParams.snapshotBuild }
910
}

x-pack/qa/multi-project/build.gradle

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,4 +3,8 @@ subprojects {
33
apply plugin: 'elasticsearch.bwc-test'
44

55
group = 'org.elasticsearch.qa.multi-project'
6+
7+
tasks.named { it == "javaRestTest" || it == "yamlRestTest" }.configureEach {
8+
it.onlyIf("snapshot build") { buildParams.snapshotBuild }
9+
}
610
}

0 commit comments

Comments
 (0)