Jenkins: Slack post shows unconfigured-jenkins location

I configured a slow plugin (v2.3) in our Jenkins (v2.60.1). It works and sends notifications of broken jobs, etc. In these posts, it includes an Open link. This link points to "unconfigured-jenkins-location".

I really checked the source code of the plugin and found that it uses jenkins.getRoot () to determine which URL to send. If the URL is not configured, it tries to determine the URL from the request. This only works if the request is an HTTP request. In case of an error, it returns null, and the slack output will be "unconfigured-jenkins-location".

To solve this problem, you need to set the Jenkins URL in your global configuration, and you need to make sure the config is present in your jenkins.model.JenkinsLocationConfiguration.xmlhow <jenkinsUrl>.

Both are set in my setup, but I still get the unconfigured URL. Do you have any clue that I can check further?

Thanks for the help!

My / var / lib / jenkins / jenkins.model.JenkinsLocationConfiguration.xml:

<?xml version='1.0' encoding='UTF-8'?>
<jenkins.model.JenkinsLocationConfiguration>
    <adminAddress>Adresse nicht konfiguriert &lt;nobody@nowhere&gt;</adminAddress>
  <jenkinsUrl>http://my-jenkins-server/</jenkinsUrl>
</jenkins.model.JenkinsLocationConfiguration>
+6
source share
1 answer

I had a similar problem. You must specify the full URL, including the http port number in the configuration file, and you need to restart the jenkins instance to have its effect

<jenkinsUrl>http://my-jenkins-server:8080</jenkinsUrl>
+1
source

All Articles