Can not get new_coverage of branch


(Benayahu Mizrachi) #1

Must-share information (formatted with Markdown):

  • which versions are you using (SonarQube, Scanner, Plugin, and any relevant extension)
    Developer Edition Version 7.6 (build 21501)
  • what are you trying to achieve
    I’m trying to get new_coverage on new lines
  • what have you tried so far to achieve this
    https://sonarWeb/api/measures/component?componentId=<MyKeyFromScan>&metricKeys=new_coverage

This is the output that I get:
{“errors”:[{“msg”:“Component id ‘AWoHxIxsTpmiUn2tmFOr’ not found”}]}

Can you help me here ?


(G Ann Campbell) #2

Hi,

The componentId parameter has been deprecated since 6.6. Use the component parameter instead, with a human-readable value rather than the internal UUID, like so:

https://next.sonarqube.com/sonarqube/api/measures/component?component=org.sonarsource.java%3Ajava&metricKeys=new_coverage

 
Ann