Hi, i'm trying to analyse C# code using Sonar for Bamboo Plugin.But it is throwing error like:
ERROR: Error during SonarQube Scanner execution
Tasks support was removed in SonarQube 7.6.
Failing task since return code of [/opt/sonar/sonar-scanner sonar-scanner -X -Dsonar.projectKey=xyz -Dsonar.host.url=http://EC2-IP:9000 -Dproject.settings=/opt/sonar/sonar-scanner.properties -Dsonar.sources=/ubuntu/bamboo-home/xml-data/build-dir/CS-JOB1] was 1 while expected 0
SONAR4BAMBOO: was not able to find a SonarQube result URL
Finished task 'codeanalysis' with result: Failed
Hi,
What I'm noticing here is that you use "sonar-scanner" twice:
/opt/sonar/sonar-scanner sonar-scanner
Is it part of the "additional arguments" section in the app's Bamboo task?
Best regards,
Michael (app vendor)
Hi Michael,
Thankyou for replying.
Yes it is part of additional arguments .
I'm running sonar-scanner command inside /opt/sonar/sonar-scanner
And my command starts from :
sonar-scanner -X ....... (only this command is a part of additional parameter)
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Thanks for your feedback. Please remove "sonar-scanner" from "additional arguments" because this doesn't work. The SonarScanner executable option just has to point to the SonarScanner home, the app will find the executable in there. Does that help?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.