Does sonarqube provide API to get SCM information?

(Taodong Lu) #1

I wish to get GIT url and put it to google-analytics, in order to know which project is using my plugin.
Is there API to get these information? otherwise I would call git command line.

Thanks

(Tibor Blenessy) #2

I am not sure in what context you want to retrieve the SCM information, you can either query the web api https://next.sonarqube.com/sonarqube/web_api/api/project_links

or if it’s in the plugin context, you can try to read sonar.links.scm property , which is set by some scanner flavors.