From 18323e6e7a069c3719dc25d23f9591caa4c59f48 Mon Sep 17 00:00:00 2001 From: Ryan Ernst Date: Thu, 17 Sep 2020 10:49:02 -0700 Subject: [PATCH] Skip release build tests for external test modules The tests don't make sense for release builds. closes #62435 --- test/external-modules/build.gradle | 7 +++++++ test/external-modules/delayed-aggs/build.gradle | 3 --- 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/test/external-modules/build.gradle b/test/external-modules/build.gradle index fa5665c14bd6c..6edede7039640 100644 --- a/test/external-modules/build.gradle +++ b/test/external-modules/build.gradle @@ -1,10 +1,17 @@ +import org.elasticsearch.gradle.info.BuildParams; + subprojects { apply plugin: 'elasticsearch.esplugin' + apply plugin: 'elasticsearch.yaml-rest-test' esplugin { name it.name licenseFile rootProject.file('licenses/APACHE-LICENSE-2.0.txt') noticeFile rootProject.file('NOTICE.txt') } + + tasks.named('yamlRestTest').configure { + it.onlyIf { BuildParams.isSnapshotBuild() } + } } diff --git a/test/external-modules/delayed-aggs/build.gradle b/test/external-modules/delayed-aggs/build.gradle index d900a92daee2f..f3b5919df10b6 100644 --- a/test/external-modules/delayed-aggs/build.gradle +++ b/test/external-modules/delayed-aggs/build.gradle @@ -17,9 +17,6 @@ * under the License. */ -apply plugin: 'elasticsearch.esplugin' -apply plugin: 'elasticsearch.yaml-rest-test' - esplugin { description 'A test module that allows to delay aggregations on shards with a configurable time' classname 'org.elasticsearch.search.aggregations.DelayedShardAggregationPlugin'