jenkinsci / discord-notifier-plugin

A post-build plugin that sends the build status to a Discord channel.
https://plugins.jenkins.io/discord-notifier/
MIT License
50 stars 25 forks source link

Only notifies once after restarting Jenkins service #117

Open slopezle21 opened 1 year ago

slopezle21 commented 1 year ago

Jenkins and plugins versions report

Environment ```text Paste the output here ```

What Operating System are you using (both controller, and any agents involved in the problem)?

Windows 10 Pro 64bits

Reproduction steps

Everytime I run a build that is supposed to notify by discord, it only works if it is right after I restart Jenkins service. Every other time, it doesn't notify. The log says: "Sending notification to Discord.", but the notification doesn't appear. E-mail notifications work perfect. I'm working on Jenkins 2.406, and the Discord Notifier plugin is up to date.

In the plugin's previous version there was an exception when trying to notify, but they fix it in this version.

Expected Results

Discord notification on every build.

Actual Results

Only notifies once after restarting Jenkins service.

Anything else?

No response

slopezle21 commented 1 year ago

Apparently, it's not just once, it notifies for a while, and then just stops notifying till next service restart