Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Feature Request] Add ability to install plugin snapshots with ./bin/opensearch-plugin #16195

Open
cwperks opened this issue Oct 4, 2024 · 1 comment
Labels
enhancement Enhancement or improvement to existing feature or request Plugins

Comments

@cwperks
Copy link
Member

cwperks commented Oct 4, 2024

Is your feature request related to a problem? Please describe

There are 3 parts to this feature request.

  1. I would like to have the ability to install plugin snapshots of all plugins included in the core repository.

For example, I would like the ability to run an installation like ./bin/opensearch-plugin install repository-s3 from a local build of OpenSearch (i.e. the output of ./gradlew localDistro)

Currently, I receive output explaining that installation by name is not supported on snapshots:

./bin/opensearch-plugin install repository-s3
-> Installing repository-s3
-> Failed installing repository-s3
-> Rolling back repository-s3
-> Rolled back repository-s3
ERROR: attempted to install release build of official plugin on snapshot build of OpenSearch

This error occurs for a couple of reasons: 1) The sonatype snapshots repo does not have plugin zips published and 2) behind the scenes ./bin/opensearch-plugin searches for artifacts in Maven Central

  1. I'd like to have the ability to install plugins from the default distribution of opensearch by name. i.e. ./bin/opensearch-plugin install opensearch-security

  2. When installing with maven coordinates, I'd like to have the ability to specify the artifact repository so that its possible to fetch artifacts from https://aws.oss.sonatype.org/content/repositories/snapshots/org/opensearch/

Describe the solution you'd like

Support installing snapshot builds and configuration of the maven repository

Related component

Plugins

Describe alternatives you've considered

Keep performing local builds and install from a file

i.e.

./gradlew :plugins:repository-s3:assemble

./bin/opensearch-plugin install file:<OPENSEARCH_HOME>/plugins/repository-s3/build/distributions/repository-s3-3.0.0-SNAPSHOT.zip

Additional context

No response

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement Enhancement or improvement to existing feature or request Plugins
Projects
None yet
Development

No branches or pull requests

2 participants