slack-plugin icon indicating copy to clipboard operation
slack-plugin copied to clipboard

Replace default message pattern in notify in Freestyle job

Open marselsultanov opened this issue 4 years ago • 1 comments

What feature do you want to see added?

At now in Freestyle job, i have only default messages, which will be send to channel for options: Notify Build Start as [{Job name} - #{Build number} Started by user {user} ({link Open to job})] Notify Success as [{Job name} - #{Build number} Success after 0.43 sec (link Open to job)] etc... And option Custom Message, which adds the message to default pattern in notifications, but not replace him.

What about to add "Default message - Success" ("Default message - Build Aborted", etc) option, with any user pattern, which replace default message? Or maybe other way, as example, when i checkup Notify Build Start/Notify Success/etc, additional windows appear, where i can replace default pattern (pic attached). Maybe some other design, what will be better?

For example, we don't use pipelines, but need Notify Success only with message like this (without default message): $BUILD_NUMBER successfully deployed

Thanks.

image

Upstream changes

No response

marselsultanov avatar Jan 24 '22 17:01 marselsultanov

Makes sense I think there's a few related issues.

The UI here is a bit out of hand with the advanced properties, would be good if it could be made sane

e.g. https://github.com/jenkinsci/slack-plugin/issues/489#issuecomment-632718639

(Personally I don't use freestyle builds at all so rely on contributions here, unlikely I will make any changes in this area without someone else picking it up, PRs will be reviewed though)

timja avatar Jan 24 '22 20:01 timja