Skip release build tests for external test modules (#62579)

The tests don't make sense for release builds.

closes #62435
This commit is contained in:
Ryan Ernst 2020-09-17 13:07:40 -07:00 committed by Ryan Ernst
parent 9bb7ce0b22
commit ede62d722f
No known key found for this signature in database
GPG Key ID: 5F7EA39E15F54DCE
2 changed files with 7 additions and 3 deletions

View File

@ -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() }
}
}

View File

@ -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'