简体   繁体   English

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

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

I am using sonar qube for code analyzer but getting error as below:我正在使用声纳qube进行代码分析,但出现如下错误:

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

and not getting specific reason why it is failing.并没有得到它失败的具体原因。

You are missing some input in your configuration, most likely something with maven (default settings.xml pointing to wrong repo).您的配置中缺少一些输入,很可能是 maven 的输入(默认 settings.xml 指向错误的存储库)。 Default maven install folder for concourse-sonarqube-resource is /opt/apache-maven . concourse-sonarqube-resource 的默认 maven 安装文件夹是/opt/apache-maven By using thedebug flag, whole trace ( mvn -X ) will be shown and you get your specific reason.通过使用调试标志,整个跟踪 ( 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