简体   繁体   中英

Sonar Qube code analysis failed with exist code 1

I am using sonar qube for code analyzer but getting error as below:

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). Default maven install folder for concourse-sonarqube-resource is /opt/apache-maven . By using thedebug flag, whole trace ( mvn -X ) will be shown and you get your specific reason.

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

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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