Skip to content

Commit 8da7d59

Browse files
committed
Build: Fix meta plugin integ test installation (#28286)
Integ test clusters should use the plugin method of ClusterConfiguration to install plugins. Without it, meta plugins install based on the name of the project directory, rather than the actual configured plugin name. This commit fixes that, and also corrects the distribution used to be the default integ-test-zip, to match that of PluginBuildPlugin. This ensures plugins are tested in isolation by default.
1 parent e192a11 commit 8da7d59

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

buildSrc/src/main/groovy/org/elasticsearch/gradle/plugin/MetaPluginBuildPlugin.groovy

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,8 +40,7 @@ class MetaPluginBuildPlugin implements Plugin<Project> {
4040

4141
project.integTestCluster {
4242
dependsOn(project.bundlePlugin)
43-
distribution = 'zip'
44-
setupCommand('installMetaPlugin', 'bin/elasticsearch-plugin', 'install', 'file:' + project.bundlePlugin.archivePath)
43+
plugin(project.path)
4544
}
4645

4746
RunTask run = project.tasks.create('run', RunTask)

0 commit comments

Comments
 (0)