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 <nobody@nowhere></adminAddress>
<jenkinsUrl>http://my-jenkins-server/</jenkinsUrl>
</jenkins.model.JenkinsLocationConfiguration>
source
share