声纳图集成 - 无法加载自定义指标文件 SonargraphMetrics.properties
Posted
技术标签:
【中文标题】声纳图集成 - 无法加载自定义指标文件 SonargraphMetrics.properties【英文标题】:Sonargraph Integration- Unable to load custom metrics file SonargraphMetrics.properties 【发布时间】:2020-08-26 15:15:46 【问题描述】:使用构建选项“Execute SonarQube Scanner”运行 jenkins 作业时出现以下错误:
INFO: Sonargraph Integration: Loaded standard metrics file '/com/hello2morrow/sonargraph/integration/sonarqube/SonargraphMetrics.properties'
ERROR: Sonargraph Integration: Unable to load custom metrics file '/root/.sonargraphintegration/SonargraphMetrics.properties'
java.io.FileNotFoundException: /root/.sonargraphintegration/SonargraphMetrics.properties (No such file or directory)
at java.io.FileInputStream.open0(Native Method)
at java.io.FileInputStream.open(FileInputStream.java:195)
at java.io.FileInputStream.<init>(FileInputStream.java:138)
at com.hello2morrow.sonargraph.integration.sonarqube.SonargraphMetricsProvider.loadCustomMetrics(SonargraphMetricsProvider.java:275)
at
Sonar 版本:Community EditionVersion 7.9.1
【问题讨论】:
【参考方案1】:我在使用插件 v5.0.0 时遇到了同样的问题,并使用 v5.1 修复了它。
https://github.com/sonargraph/sonar-sonargraph-integration/releases
【讨论】:
以上是关于声纳图集成 - 无法加载自定义指标文件 SonargraphMetrics.properties的主要内容,如果未能解决你的问题,请参考以下文章