Closed Bhargav-Rao closed 4 years ago
This plugin does not read the sonar-project.properties file, please refer the Parameter Reference. The repository name is regarded as the project key and project name.
The documentation stats this : "You could also add a file named sonar-project.properties at the root of your project to specify parameters." So it is intended to read that file, no ?...
Yep, it looks like the documentation needs to be updated to be more clear.
@Bhargav-Rao You could refer the newest code and doc, which supports the 'sonar-project.properties' configuration, do a test using image aosapps/drone-sonar-plugin:latest
.
It works, thank you @roganw ! ;-)
Hi, I'd like to thank you for creating this awesome plugin. I was playing around with it and found it very intuitive to use. I'm facing a small problem, and would like to make sure that it isn't a bug. The documentation mentions:
I specified a sonar-project.properties file, but the plugin still seems to use the repository name, instead of the one specified as the project key. The sonar-project.properties file is:
The .drone.yml file is:
And I have my .drone.yml and the sonar-project.properties file at my root.
Can you take a look at this and let me know if it is a bug, or if I need to change the configurations in some way? Thanks for your help.