-
Notifications
You must be signed in to change notification settings - Fork 138
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
Publish snapshots to maven via GHA #754
Conversation
Signed-off-by: Xun Zhang <[email protected]>
Pending @gaiksaya to create the IAM role that is required to fetch the credentials and add it to the GitHub Secrets. |
Codecov Report
📣 This organization is not using Codecov’s GitHub App Integration. We recommend you install it so Codecov can continue to function properly for your repositories. Learn more @@ Coverage Diff @@
## 2.x #754 +/- ##
============================================
- Coverage 84.39% 84.33% -0.07%
+ Complexity 1591 1589 -2
============================================
Files 135 135
Lines 5935 5935
Branches 560 560
============================================
- Hits 5009 5005 -4
- Misses 690 693 +3
- Partials 236 237 +1
Flags with carried forward coverage won't be shown. Click here to find out more.
Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here. |
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.
Looking forward to having this merged.
SQL plugin CI needs the latest snapshot of opensearch-ml-client to build.
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.
Secrets have been added to the repository
Hi @Zhangxunmt Would suggest to raise this PR against main first. GHA needs to detect the triggers which is against. It can then be backported to other branches |
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 publishPluginZipPublicationToSnapshotsRepository |
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 we also add publish ml-commons client jar to this file?
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.
Good question. If needed, will do in a separate PR.
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.
@ylwu-amzn @Zhangxunmt do you mind if @Yury-Fridlyand or myself publish this PR?
SQL plugin needs the snapshot with build fixes before we can merge the PR with our build fixes.
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.
Sure, please go ahead! @MaxKsyunz
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.
Thanks @MaxKsyunz , feel free to cut a new PR
Signed-off-by: Xun Zhang <[email protected]>
Signed-off-by: Xun Zhang <[email protected]>
Description
Publish snapshots to maven via GHA
Issues Resolved
[https://github.com//issues/734 ]#734
Tests
find plugin/snapshots | sort
plugin/snapshots
plugin/snapshots/org
plugin/snapshots/org/opensearch
plugin/snapshots/org/opensearch/plugin
plugin/snapshots/org/opensearch/plugin/opensearch-ml-plugin
plugin/snapshots/org/opensearch/plugin/opensearch-ml-plugin/2.6.0.0-SNAPSHOT
plugin/snapshots/org/opensearch/plugin/opensearch-ml-plugin/2.6.0.0-SNAPSHOT/maven-metadata.xml
plugin/snapshots/org/opensearch/plugin/opensearch-ml-plugin/2.6.0.0-SNAPSHOT/maven-metadata.xml.md5
plugin/snapshots/org/opensearch/plugin/opensearch-ml-plugin/2.6.0.0-SNAPSHOT/maven-metadata.xml.sha1
plugin/snapshots/org/opensearch/plugin/opensearch-ml-plugin/2.6.0.0-SNAPSHOT/maven-metadata.xml.sha256
plugin/snapshots/org/opensearch/plugin/opensearch-ml-plugin/2.6.0.0-SNAPSHOT/maven-metadata.xml.sha512
plugin/snapshots/org/opensearch/plugin/opensearch-ml-plugin/2.6.0.0-SNAPSHOT/opensearch-ml-plugin-2.6.0.0-20230222.232524-1.pom
plugin/snapshots/org/opensearch/plugin/opensearch-ml-plugin/2.6.0.0-SNAPSHOT/opensearch-ml-plugin-2.6.0.0-20230222.232524-1.pom.md5
plugin/snapshots/org/opensearch/plugin/opensearch-ml-plugin/2.6.0.0-SNAPSHOT/opensearch-ml-plugin-2.6.0.0-20230222.232524-1.pom.sha1
plugin/snapshots/org/opensearch/plugin/opensearch-ml-plugin/2.6.0.0-SNAPSHOT/opensearch-ml-plugin-2.6.0.0-20230222.232524-1.pom.sha256
plugin/snapshots/org/opensearch/plugin/opensearch-ml-plugin/2.6.0.0-SNAPSHOT/opensearch-ml-plugin-2.6.0.0-20230222.232524-1.pom.sha512
plugin/snapshots/org/opensearch/plugin/opensearch-ml-plugin/2.6.0.0-SNAPSHOT/opensearch-ml-plugin-2.6.0.0-20230222.232524-1.zip
plugin/snapshots/org/opensearch/plugin/opensearch-ml-plugin/2.6.0.0-SNAPSHOT/opensearch-ml-plugin-2.6.0.0-20230222.232524-1.zip.md5
plugin/snapshots/org/opensearch/plugin/opensearch-ml-plugin/2.6.0.0-SNAPSHOT/opensearch-ml-plugin-2.6.0.0-20230222.232524-1.zip.sha1
plugin/snapshots/org/opensearch/plugin/opensearch-ml-plugin/2.6.0.0-SNAPSHOT/opensearch-ml-plugin-2.6.0.0-20230222.232524-1.zip.sha256
plugin/snapshots/org/opensearch/plugin/opensearch-ml-plugin/2.6.0.0-SNAPSHOT/opensearch-ml-plugin-2.6.0.0-20230222.232524-1.zip.sha512
plugin/snapshots/org/opensearch/plugin/opensearch-ml-plugin/maven-metadata.xml
plugin/snapshots/org/opensearch/plugin/opensearch-ml-plugin/maven-metadata.xml.md5
plugin/snapshots/org/opensearch/plugin/opensearch-ml-plugin/maven-metadata.xml.sha1
plugin/snapshots/org/opensearch/plugin/opensearch-ml-plugin/maven-metadata.xml.sha256
plugin/snapshots/org/opensearch/plugin/opensearch-ml-plugin/maven-metadata.xml.sha512