-
Type:
Improvement
-
Resolution: Unresolved
-
Priority:
Blocker
-
Component/s: build-failure-analyzer-plugin
-
Environment: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