-
Notifications
You must be signed in to change notification settings - Fork 18
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
Adding Maven publish WF #11
Conversation
Signed-off-by: Khushboo Rajput <khushbr@amazon.com>
Signed-off-by: Khushboo Rajput <khushbr@amazon.com>
Signed-off-by: Khushboo Rajput <khushbr@amazon.com>
Can you testing the changes? See https://github.com/opensearch-project/opensearch-plugins/blob/main/WORKFLOWS.md#testing for the steps |
.github/workflows/maven-publish.yml
Outdated
export SONATYPE_PASSWORD=$(aws secretsmanager get-secret-value --secret-id maven-snapshots-password --query SecretString --output text) | ||
echo "::add-mask::$SONATYPE_USERNAME" | ||
echo "::add-mask::$SONATYPE_PASSWORD" | ||
./gradlew publish |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should only publish to snapshots repository
@gaiksaya Wondering how is this different from Following https://github.com/opensearch-project/opensearch-plugins/blob/main/WORKFLOWS.md#testing, set url to
|
Maven local also has generates different kind of metadata.xml. Also above artifacts are missing "SNAPSHOTS" keyword which might lead to failures during upload |
…Repository Signed-off-by: Khushboo Rajput <khushbr@amazon.com>
Thank you clarifying, @gaiksaya . Fixed the issue. |
Thanks! Can you also update the comment with new snaphots that are being published? Also, just confirming |
Does this plugin also generate a Zip file to install apart from the jar? As did notice the following is commented out
|
@gaiksaya The PR description has been updated with the latest snpashots getting published. Adding here as well. And yes,
|
@prudhvigodithi Only the source JAR is required from commons. Curious, any reason to publish a zip here that you are aware? |
Got it, plugins can be installed with |
Is your feature request related to a problem? Please provide an existing Issue # , or describe.
Adding Maven publish WF, following https://opensearch.org/blog/opensearch-plugin-zips-now-in-maven-repo/ and https://github.com/opensearch-project/opensearch-build/blob/main/ONBOARDING.md
Following https://github.com/opensearch-project/opensearch-plugins/blob/main/WORKFLOWS.md#testing, set url to /Users/khushbr/test/
Check List
By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.
For more information on following Developer Certificate of Origin and signing off your commits, please check here.