-
Notifications
You must be signed in to change notification settings - Fork 25
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
Discord doesn't notify me when a message with mention has arrived. #10
Comments
Unfortunately mentioning people inside the embed doesn't send a notification (discord doesn't allow that). |
Oh it's ok no problem. do you know how to pass that "notes" parameter into a pipeline style command? |
Here is a example of what I am using in my Jenkinsfile (Using Scripted Pipeline, may differ for Declarative Pipeline) // URL of Discord webhook for posting build notifications
def discordURL = 'https://discordapp.com/api/webhooks/Shortkey/Longkey'
// URL of image png/jpg to place to right of Discord build notifications
def discordImage = 'https://blabla.png'
def discordDesc = "description\n"
def discordFooter = "footer desc with vars: ${env.JOB_BASE_NAME}` (build #${BUILD_NUMBER})"
def discordTitle = "${buildName} (devel)"
discordSend description: discordDesc,
footer: discordFooter,
link: env.JOB_URL,
result: currentBuild.currentResult,
title: discordTitle,
webhookURL: discordURL,
successful: currentBuild.resultIsBetterOrEqualTo('SUCCESS'),
thumbnail: discordImage
} Hope this helps - and great work you all! Thanks so much :) ~ melt |
@everalan10 I just pushed an update to the plugin, from now on you can pass |
Hi KocproZ, Thanks for adding a feature. I have added the ~ melt |
Test results for Declarative Pipeline code using "notes" parameter with mentions. The test failed, and the mentions were not picked up by discord. Discord-notifier version: 1.4.10
Resulting output in Discord: Hope this helps, let me know if you would like any other testing performed. Your work on this project is always appreciated! ~ melt |
Aha, thank you, the <@id> syntax worked great: Thanks again! |
Hi, thanks for this plugin is awesome.
We are a team with 10 people into a Discord Server, but we dont want to advice to all when a fail or succeed has been occurred. We mute the channel and only the interested people must read it.
The problem is every time that we receive a message from Jenkins, the mentions are not accumulated into the Discord mentions area. appears empty.
But the message appears ok with the name of the user.
![Discord mention](https://user-images.githubusercontent.com/6885581/63377023-5acfa800-c34c-11e9-9792-ae5ceed19f79.png)
Again, Thanks.
The text was updated successfully, but these errors were encountered: