I configured the slack plugin (v2.3) in our Jenkins (v2.60.1). It works and sends notifications about broken jobs etc. In these messages it includes a link "Open". This link points to "unconfigured-jenkins-location".
I have actually checked the sourcecode of the plugin and found that it uses jenkins.getRoot() to determine which URL to send. If there is no URL configured it tries to determine the URL from the request. This does only work if the request is a 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 config and you need to make sure that the config is present in your jenkins.model.JenkinsLocationConfiguration.xml
as <jenkinsUrl>
.
Both is set in my setup but I still get the unconfigured URL. Do you have any clue what I could check next?
Thank you for any 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>