Hi,
What is the best practice to store custom plugin configurations on sonarqube?
Could you please let me know is there any way to do this?
I am using sonarqube 7.9.3 LTS
Thank You
Hi,
What is the best practice to store custom plugin configurations on sonarqube?
Could you please let me know is there any way to do this?
I am using sonarqube 7.9.3 LTS
Thank You
Hi,
You can declare properties your plugin rely on using the PropertyDefinition
API: https://github.com/SonarSource/sonar-custom-plugin-example/blob/ee4236541cf276ebaad11dea43c88e7fd18cca9d/src/main/java/org/sonarsource/plugins/example/settings/HelloWorldProperties.java#L38
This will optionally make the setting editable in SonarQube UI.
Then your plugin can query the value using the Configuration
API:
This is the answer what i looking for. Thank you very much for your consideration.
Thank you
This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.