'SONARQUBE: how estract, via API, lines of code for each project
I've seen that I can found the line of code for a project on my SONAR instance using this command
http://<my_sonar_instance_url>/api/measures/component?componentKey=<project_name>&metricKeys=ncloc
and the output is
{
"component": {
"id": "<the_id>",
"key": "<the_key>",
"name": "<the_name>",
"qualifier": "TRK",
"measures": [
{
"metric": "ncloc",
"value": "37370"
}
]
}
}
That is fine!
Is there some way to extract the line of code of ALL my projects on SONAR "in bulk"? Or Do I've to cycle on my project list and extract them one to one?
Thank you in advance!
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
Solution | Source |
---|