-
Improvement
-
Resolution: Unresolved
-
Blocker
-
Jenkins 2.138.4 above , Build Failure Analyzer 1.25.1
Hello
Currently we are using the Statistics details from mongodb to do post action of failed build. But we are having an issue that the master attribute not have the correct host info . So this issue blocking us to generate the actual build URL . I have describe the problem below in details
We have hosted lots of Jenkins masters as below
Storage type - Mongo DB and Statistics is enabled Administrative settings . So that when there is failure from any of the Jenkins master details are persist . but when the Statistics info are saved only the initial part of Jenkins master url are saved
eg:
myServer:8080
its looks like getting as below removing the suffix part of our Jenkins master url
String masterString = Jenkins.getInstance().getRootUrl();
//masterString is corret Jenkins master url (http://myServer:8080/jenkins)
name = new URL(masterString).getHost();
//only considered the host info as myServer:8080
Could you please save the rootUrl as it or introduce a new field for buildURL .
Thank in advance