I’ve a requirement in which I want my development teams to pass an additional info about project while scanning. Preferably within sonar-project.properties.
This additional info is a meta information about the project, which I want to later fetch via sonarqube’s REST API.
I’ve gone thru documentations and Q&A and have came across below possible solutions, but some info missing:
sonar.analysis.[yourKey]- According to documentation, I can pass meta info using this analysis-parameter. But how can I fetch this info back via REST API. Suppose in my project properties I pass
sonar.analysis.mymeta=XYZ, can I get it’s value in REST call?
Custom Measures - This allows me to set the meta info, but not via properties file & also requires ‘Administer System’ permission or ‘Administer’ permission on the project. Is there a workaround for this?
Project Tags - I can set my meta info in TAG, but here also not via properties file & also requires ‘Administer System’ permission on the project. Is there a workaround for this?
Please assist. If there any another approach, please suggest that as well.