Hello,
We recently upgrade from version 7.9.1LTS to 8.9.2LTS and found that the API key parameter componentKey
was changed for api/measures/component
to just component
and could not find any references the documentation or release notes. Thought to bring this up in this forum. Because of this change, many builds started to fail, as we missed to update the development teams on this change which was part of the upgrade. Request is to update the release notes so other companies do not face the same issue as we did.
Solution:
change this call
Version 7 and earlier
https://sonarqube.company.com/api/measures/component?metricKeys=blocker_violations,critical_violations,tests,test_errors,test_failures,major_violations,coverage,sqale_index,ncloc_language_distribution&componentKey=sonar:projectkey
Thank you
Sagar