dmcgill50
dmcgill50

Reputation: 540

How to search for measures, corresponding to a specific project version?

I am using SonarQube 6.4 (build 25310, self-hosted). I'm able to search using id as demonstrated by this URL:

https://sonarqube.localhost.com/component_measures/metric/coverage/history?id=%AWESOME_API%

What other parameters can I use? I would want to search for a specific version that has been scanned.

Upvotes: 0

Views: 732

Answers (1)

G. Ann - SonarSource Team
G. Ann - SonarSource Team

Reputation: 22804

Take a look at the measures/search_history service. It doesn't give you a version parameter, but you can search by date. So pinpoint your date using the project_analyses/search service, and then search for measures by date.

Note that file level measures are only retained for the most recent analysis.

Upvotes: 2

Related Questions