繁体   English   中英

声纳 Qube 代码分析失败,存在代码 1

[英]Sonar Qube code analysis failed with exist code 1

我正在使用声纳qube进行代码分析,但出现如下错误:

Preparing `SonarQube` scanner...
`realpath`: '': No such file or directory
ERROR in /opt/resource/out : line 85 with exit code 1

并没有得到它失败的具体原因。

您的配置中缺少一些输入,很可能是 maven 的输入(默认 settings.xml 指向错误的存储库)。 concourse-sonarqube-resource 的默认 maven 安装文件夹是/opt/apache-maven 通过使用调试标志,整个跟踪 ( mvn -X ) 将被显示,你会得到你的具体原因。

type: sonar-runner
source:
  host_url: ((sonarqube.url))
  __debug: true

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM