Comments (9)
I understand; probably because it is sent+formatted as "attachement" under the hood. That is a useful feature/setting to implement.
from jenkins-mattermost-plugin.
Would that mean those users are always the same for a given job? (ie. fixed per-job configuration in jenkins?)
from jenkins-mattermost-plugin.
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.
Otherwise, on a simply unstable build, I'd like to only advise developers.
I would customize each message with the corrects @ to target concerned users in the jenkins conf.
from jenkins-mattermost-plugin.
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?
from jenkins-mattermost-plugin.
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.
We do not have problem to send notification at any stage in the job by using Jenkins 2.0 pipeline. But we want to target users, more than just broadcast the "failed job status" to the whole channel.
from jenkins-mattermost-plugin.
@zdtsw if you add @username
in the message, the user is "targeted"; at this time it's not possible to send a direct message to a user via Mattermost.
from jenkins-mattermost-plugin.
@jovandeginste , I'v it before posted here, but it did not work.....
e.g: in my Jenkinsfile,
mattermostSend channel: "#team1", color: 'bad', message: " @wezh01 job failed: ${JOB_URL}${BUILD_NUMBER} "
Go to mattermost #team1 channel, I can see:
@wezh01 job failed: http://myjenkins.com/job/whatmattermost/51
but @wezh01 is just a plain text, and I did not get any notification.
from jenkins-mattermost-plugin.
I know this is old but I recently needed to use user-mentions as well. The above PR adds text
as an optional argument for mattermostSend
that adds that to the text
field, which does allow for searchable and highlightable text.
from jenkins-mattermost-plugin.
This should be solved with v2.4.1 if you use Jenkins Pipelines
from jenkins-mattermost-plugin.
Related Issues (20)
- Support for direct message channels HOT 6
- Support direct message channels with spaces HOT 3
- Notification incorrectly counts affected files
- Posting in Mattermost not working HOT 6
- DM to the buildbreakers HOT 2
- Feature request: trigger only for parent job on matrix projects
- Error posting to Mattermost : hostname in certificate did not match HOT 3
- Cannot change settings (i.e. endpoint) in "classic" Jenkins HOT 11
- Notifications not working for promoted builds plugin Mattermost notificaition as a promotion process action
- Add post-build to all jobs? HOT 1
- Mattermost dedicated proxy settings HOT 3
- Send job Build Stability HOT 2
- Update dependencies HOT 1
- Cannot update Jenkins config.xml via POST HOT 3
- Change of endpoint from String to Secret incomplete? HOT 29
- Plugin does not support multiple no-proxy hosts HOT 1
- Feature Request: include logging information into the message
- Include diffs to previous run in test results
- Research vulnerability log4j plugin and fix is needed HOT 2
- Sending a message to a different team is not working HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from jenkins-mattermost-plugin.