-
Notifications
You must be signed in to change notification settings - Fork 26
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
Plugin no longer posts notifications #18
Comments
After investigating, notifications are successfully posted with "Enable URL linking" unticked. This is my configuration for the plugin (the only post-build action): And then the rest of the project: "Build" configuration is a series of Windows batch and shell command execution blocks. It's worth noting I get this message in my build output log when the option is ticked:
Which setting is this referring to? Because "Jenkins URL" in the "Configure System" page is definitely set, and not to localhost. Is this the right setting for this? |
I am using Discord Notifier Plugin 1.4.12 over Jenkins 2.222.3 (Both are the current latest available in repos) I successfully tested both my Jenkinsfile Pipeline via SCM discord notifications, and my freestyle projects discord notifications, with both URL linking ON and OFF, and all 4 variations are working properly for me. For localhost error, have a quick peek at this page: https://www.tutorialspoint.com/jenkins/jenkins_configuration.htm Triage tip: Perhaps add debug lines prior to discord notification step, Execute shell echo ${JENKINS_URL} and such, to see what's going on. Hope this is helpful! ~ melt |
So, I found where that error comes from. When URL Linking is turned on, then it will check for the global url, i'm guessing this is the value of "Jenkins Location -> Jenkins URL" on /configure. Should not matter if it's proxied. Here's the code: discord-notifier-plugin/src/main/java/nz/co/jammehcow/jenkinsdiscord/WebhookPublisher.java Line 192 in f923300
Hope this helps, all! ~ melt |
This used to work great for me. Now it doesn't work at all.
I recently tried building a project that had this set up working fine last year and now it no longer posts to the Discord channel. The webhook URL hasn't changed nor has anything to do with the build. The plugin is up-to-date.
Jenkins is pretty up-to-date as well. The project is a typical freestyle project using SVN as its SCM. (I'm also not able to get the plugin working with a Bitbucket Server project.)
Maybe I'm missing something?
The text was updated successfully, but these errors were encountered: