Comments (16)
Hello,
I made it that changeset won't show if there is no repo tied to the job.
I added a custom field called notes too. It looks like this:
Let me know if this is what you had in mind.
Also, if you want to test this already grab hpi file from here
from discord-notifier-plugin.
Sorry, it really works. However, not as in this thread on the screenshots. Can I somehow indicate not id, but by nicknames?
from discord-notifier-plugin.
Thank you very much for this great feature request and implementation!
~ melt
getpimp.org | miner.farm
from discord-notifier-plugin.
Great! Just what I was looking for. Maybe add ability to not show changeset even if repo is in? Sometimes you don't want to announce changes.
Thanks for working on this! :)
from discord-notifier-plugin.
Sorry to bump this but have you thought of proposed change above?
Also when can we expect updated version to be pushed to Jenkins' repos?
from discord-notifier-plugin.
Sorry, I forgot about this.
I think checkbox to hide changeset is a good idea, easy to add too.
I'm going to add it and push changes to jenkins today or tomorrow.
from discord-notifier-plugin.
Thank you a lot for working on this. :)
from discord-notifier-plugin.
Ok, I've checked and almost everything is perfect. Except for the fact how embeds work on discord. I intended to use that extra notes to tag people that needed to see that build was out @here
or different.
But, you can't tag people in discord's embeds. It won't send any kind of notification.
So my question would be - could we add some extra message that would be outside of the embed? Or let us choose whether we want the notes to appear in embed or not?
Thanks in advance! I really appreciate your hard work on this! :)
from discord-notifier-plugin.
Hello @furai, I was wondering if you placed their full Discord Tag into the comment, this is sometimes required for Discord to provide a Mention link. Example: Instead of @melt
you would tag @melt#2019
See if this allows the Mention Link to be created for you.
PS Thank you very much KocproZ :)
Thanks!
~ melt
getpimp.org | miner.farm
from discord-notifier-plugin.
I can tag, it just does not mention/give notification. That's how embeds in discord work. That's why I'm asking for additional note outside of embed.
EDIT: https://discordapp.com/developers/docs/resources/channel#message-object
This apparently says that there is special field which allows to mention people.
from discord-notifier-plugin.
Hello again,
Adding a note outside an embed wouldn't work, there would be the same problem.
Basically to tag people from webhook or bot you have to tag them by their discord id.
You can get that by either tagging someone with \ (For example \@username#1234), or by enabling developer mode, then right clicking someone > copy id.
When you have their discord id, you put it between <@>, like this: <@123450000001234567>.
Hope it helps!
from discord-notifier-plugin.
What about whole roles? I have "tester" role. And this notification is sent to the "testers" channels and I'd like it to mention preferably @here
or that role. Maybe the fields mentioned in the message-object can be used for that?
EDIT: I've done some more testing on my own - nothing in embed causes a notification to pop up. If you want to tag someone it has to be done in content outside of the embed.
from discord-notifier-plugin.
Ok, now I get it, sorry for misunderstanding.
I will move the notes to the webhook content.
Also, to mention roles you have to put role id between <@&>, like this: <@&12345678900000>.
EDIT: link to hpi, please confirm if this is working
from discord-notifier-plugin.
Yes, I tested with those IDs (<@&>
) inside embed message sent by me using curl on my server with other people. They confirmed that they weren't tagged. Discord was smart enough to convert ID to the name of the group.
Sorry for the confusion with other message-object link.
I can't test right now but I trust you did good job with it so just release it.
Thanks again for dealing with me and coding all of this! :)
from discord-notifier-plugin.
Tested. Everything works perfectly! Thanks a ton!
One thing you might want to look into is this line:
https://github.com/jenkinsci/discord-notifier-plugin/blob/master/src/main/resources/nz/co/jammehcow/jenkinsdiscord/WebhookPublisher/help-notes.html#L2
from discord-notifier-plugin.
Are you sure what works? As soon as I tried it, it does not work.
from discord-notifier-plugin.
Related Issues (20)
- Notification can be sent to channel but no content shown inside the channel HOT 2
- Plugin not showing under configuration -> source management after installation HOT 5
- Pipeline failure: NullPointerException HOT 1
- Failing Job with Send notification when job starts in Jenkins 2.387.3 HOT 10
- Only notifies once after restarting Jenkins service HOT 1
- showChangeset: true with perforce shows the changes twice on discord
- Completed Stage list
- How to get notifications to match traditional notifications when moving to declarative pipelines?
- Sending files to discord from jenkins job workspace HOT 1
- Bot username configured as Jenkins HOT 1
- Send Notification Pipeline Declarative - Help HOT 4
- Make status color customizable
- NPE preventing successful build notification HOT 4
- Discord notification not being sent HOT 3
- Changes truncated on newline
- Only the first message is send when used behind proxy
- Add **fields** HOT 1
- How to insert ENV variable into the field "Branch name" HOT 1
- Please release fix for issue: Webhooks created after July 22 don't work because the regex only expects an 18-character id HOT 1
- Support for linking local file path
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 discord-notifier-plugin.