-
Notifications
You must be signed in to change notification settings - Fork 10
Update Slack build publish plugin artifacts distribution #70
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
Open
thindie
wants to merge
61
commits into
appKODE:make-it-multimodular
Choose a base branch
from
thindie:slack-build-summary-message
base: make-it-multimodular
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Update Slack build publish plugin artifacts distribution #70
thindie
wants to merge
61
commits into
appKODE:make-it-multimodular
from
thindie:slack-build-summary-message
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
…cture implementation. Clean up BuildPublishSlackExtension, SlackServiceExtension, SlackTasksRegistrar, BuildPublishSlackPlugin
…Build Add SlackBlocks API for rich text formatting Update SlackUploadService to support changelog with user mentions and version Add support for Slack Block Kit rich text blocks in file uploads Integrate changelog display in Slack distribution messages
Remove bot block, integrate settings into distributionCommon Add userMentions and distributionDescription support
TODO - Remove current README slack config readme section DO NOT PUBLISH before complete make-it-multimodular b
7b9c130 to
8667f11
Compare
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.

🚀 Description
Refactor Slack integration to support rich text changelog messages with file uploads. This change removes the deprecated changelog-only functionality and introduces a new unified approach that combines file distribution with rich text changelog display using Slack Block Kit.
📄 Motivation and Context
AT-278 - Slack Build Summary Message
The previous Slack integration had separate functionality for changelog-only messages and file uploads, which created complexity and didn't provide a unified user experience. This change consolidates the functionality to provide rich text messages with file uploads, including user mentions and version information, all in a single Slack message.
🧪 How Has This Been Tested?
📦 Types of changes
✅ Checklist
🔧 Technical Changes
Added
SlackBlocks.kt- New API for Slack Block Kit rich text formattingRemoved
SlackChangelogConfig.kt- Deprecated changelog-only configurationSendSlackChangelogTask.kt- Separate changelog taskSlackWebhookService.kt- Webhook-based changelog sendingBuildPublishSlackExtensionModified
SlackUploadService.kt- Enhanced to support rich text blocksSlackDistributionConfig.kt- Added user mentions and description fieldsSlackTasksRegistrar.kt- Updated to use distribution-based service lookupBuildPublishSlackExtension.kt- Simplified configuration structure📋 Migration Guide
Before (Deprecated)
buildPublishSlack { bot { common { webhookUrl.set("https://hooks.slack.com/...") iconUrl.set("https://i.imgur.com/...") } } changelog { // changelog configuration } }After (New)
buildPublishSlack { distributionCommon { uploadApiTokenFile.set(File("path/to/slack-token.txt")) destinationChannel("builds") userMentions("@here", "@channel") // distributionDescription("RC v1.3.1990") // Optional: defaults to GitLab tag name } }🎯 Benefits