-
Notifications
You must be signed in to change notification settings - Fork 46
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
Custom message on each task #5
Comments
Would that mean those users are always the same for a given job? (ie. fixed per-job configuration in jenkins?) |
I mean that, for example, on a broken build, I'd like to advise the product owner and the scrum master that there's a problem. I would customize each message with the corrects @ to target concerned users in the jenkins conf. |
This issue has been open for a while now, and I've been thinking about it ever since. The reason I've not made any implementation for this is the following. Since a few months I'm using Jenkinsfiles. This lets me combine any (supported) plugins programmatically. This means I can send any Mattermost notification at any stage of the job, exactly the way I want it (as a user). If you never heard of Jenkinsfiles or the Jenkins workflow/pipelines plugins, I honestly suggest you check it out! If there is anything holding you back from using it, I'm sorry this solution is not what you need. It may be opportune to reevaluate? |
We have similar requirement from our projects: when a build fails, mattermost sends direct message to the one who either starts the job or pushes the code changes, or at least use @ to mark them on the channel. |
@zdtsw if you add |
@jovandeginste , I'v it before posted here, but it did not work..... e.g: in my Jenkinsfile, Go to mattermost #team1 channel, I can see: |
I understand; probably because it is sent+formatted as "attachement" under the hood. That is a useful feature/setting to implement. |
I know this is old but I recently needed to use user-mentions as well. The above PR adds |
This should be solved with v2.4.1 if you use Jenkins Pipelines |
* Refactor variable names and comments * Update error log
Hi,
I'd like to know if it is possible, for each notification kind, to set a custom message.
I'd like, for example, on a broken build notify concerned users with @ markup.
Thanks
The text was updated successfully, but these errors were encountered: