jenkinsci / jenkinsci/slack-plugin

Replace default message pattern in notify in Freestyle job

Open
#784 1 comment 0 reactions 0 assignees View on GitHub
Dominant language
Java
Stars
672
Forks
396
Avg merge
2d 23h
Merged PRs (30d)
5

Description

### 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](https://user-images.githubusercontent.com/80184639/150831672-85106b90-8656-4fa5-bf88-05a0a3ace4cd.png)

### Upstream changes

_No response_

Contributor guide

Open the contributing guide

Research direction

Start by reviewing the Freestyle job notification configuration and the existing Custom Message option described in the issue. Define how users should replace, rather than append to, default messages for events such as build start, success, and aborted builds; done means the selected events support a clear replacement behavior and the configuration is covered by tests.

Written by the indexing model from the issue text.

Assessment

Tech stack
java
Domain
devops
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.