Hi Guys,
I am developing a plugin that brings in some data into Sonarqube. I have brought in the data already, and I am trying to add to the UI at the project level (when i select a project and inside of the project level overview there is Reliability). Right Now I have created 5 Metrics that are all under the Reliability
. I would like for those Metrics to be under my own custom Bucket. Is there anyway to do this in Sonarqube 7.9 LTS.
Thanks a lot for your time.
Hi,
Have you tried just setting your custom domain as the domain? It looks like it’s just a string.
Â
Ann
Thanks so much I somehow didn’t realize I could just set the Domain to be any String, thought it had to be a specific system property!
There is also a convention to have it localized: https://github.com/SonarSource/sonarqube/blob/250d2da7e38b82bc29f70e6f03bae2e80d6808d4/sonar-core/src/main/resources/org/sonar/l10n/core.properties#L1618
Hi,
In the custom plugin code , I am setting the domain as below :
private static final String CUSTOM_DATA = “CUSTOM ANALYSIS”;
public static final Metric SOME_DATA = new Metric.Builder(DATA_KEY, “Data”, Metric.ValueType.DATA)
.setDirection(DIRECTION_NONE)
.setDomain(CUSTOM_DOMAIN)
.setQualitative(true)
.setDescription(“None”)
.create();
The CUSTOM DOMAIN is not showing in MEASURES page.
Plugin API Version : 7.9
Runtime : 7.9.5
Any help?
Thanks
Milind