[JIRA] (JENKINS-62162) Build Failure Analyzer persist Incorrect master field details in Statistics collections

1 view
Skip to first unread message

behera.lokanath@in.bosch.com (JIRA)

unread,
May 5, 2020, 1:32:02 AM5/5/20
to jenkinsc...@googlegroups.com
Lokanath Behera created an issue
 
Jenkins / Improvement JENKINS-62162
Build Failure Analyzer persist Incorrect master field details in Statistics collections
Issue Type: Improvement Improvement
Assignee: Tomas Westling
Components: build-failure-analyzer-plugin
Created: 2020-05-05 05:31
Environment: Jenkins 2.138.4 above , Build Failure Analyzer 1.25.1
Labels: bfa buildfaulureanalyser missingbuildurl
Priority: Blocker Blocker
Reporter: Lokanath Behera

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

http://myServer:8080/jenkins1

http://myServer:8080/jenkins2

http://myServer:8080/jenkins3

http://myServer:8080/jenkins4

http://myServer:8080/jenkins5

 

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

 

From <https://github.com/jenkinsci/build-failure-analyzer-plugin/blob/master/src/main/java/com/sonyericsson/jenkins/plugins/bfa/utils/BfaUtils.java>

 

Could you please save the rootUrl as it or introduce a new field for buildURL .

 

Thank in advance

Add Comment Add Comment
 
This message was sent by Atlassian Jira (v7.13.12#713012-sha1:6e07c38)
Atlassian logo
Reply all
Reply to author
Forward
0 new messages