KocproZ / jenkins-discord

A post-build plugin that sends the build status to a Discord channel.
MIT License
39 stars 36 forks source link

Trouble with thumbnail URL and URL linking #35

Closed azeier closed 6 years ago

azeier commented 6 years ago

The webhook generally works and editing the title does too. However:

The "Jenkins Location - Jenkins URL" is configured correctly. I don't see anything related in the system logs.

Using Jenkins 2.141 and jenkins-discord v1.3.0.

Running out of ideas for what to try. Any help would be much appreciated.

KocproZ commented 6 years ago

URL linking turns itself off automatically if it doesn't detect Jenkins URL. When it happens you should see this inside your job Console output: Your Jenkins URL is not set (or is set to localhost)! Disabling linking. Was the Jenkins URL set automatically? If yes please update it in some way (eg. change it to something else and back).

As for the thumbnail issue I'm still looking into it, but can't reproduce it yet.

azeier commented 6 years ago

I do see that output. I just tried setting the url to google.com, reenabling the setting and running the job, followed by setting it back to the previous url and doing the same. Got the same Your Jenkins URL is not set (or is set to localhost)! Disabling linking. both times.

Jenkins is configured to require login without any access for anonymous users, could that be an issue?

KocproZ commented 6 years ago

Ok, another idea. Can you please install this version of the plugin, run the job and find in the Console output something like this:

global config1: null: false, urlNull: false
global config: null: false, urlNull: false

Then post it here.

And configuration requiring login shouldn't be an issue.

azeier commented 6 years ago

Sorry for the delay, here's the output:

global config1: null: false, urlNull: true
global config: null: false, urlNull: false
azeier commented 6 years ago

It looks like the URL linking is now working 👍