Giter Club home page Giter Club logo

Comments (9)

jovandeginste avatar jovandeginste commented on August 26, 2024 3

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.

jovandeginste avatar jovandeginste commented on August 26, 2024

Would that mean those users are always the same for a given job? (ie. fixed per-job configuration in jenkins?)

from jenkins-mattermost-plugin.

egavard avatar egavard commented on August 26, 2024

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.

jovandeginste avatar jovandeginste commented on August 26, 2024

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.

zdtsw avatar zdtsw commented on August 26, 2024

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.

jovandeginste avatar jovandeginste commented on August 26, 2024

@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.

zdtsw avatar zdtsw commented on August 26, 2024

@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.

charlietsai avatar charlietsai commented on August 26, 2024

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.

jovandeginste avatar jovandeginste commented on August 26, 2024

This should be solved with v2.4.1 if you use Jenkins Pipelines

from jenkins-mattermost-plugin.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.