-
-
Notifications
You must be signed in to change notification settings - Fork 5.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Sonarqube 8.5 quality gate parameter componentKey #5882
Comments
Thanks for reaching out @blink38, could you please provide some additional context? Is there a problem you are seeing with the badges? Is there any release notes from Sonar Source announcing breaking API changes? |
When selecting Analysis > Sonar Quality Gate : The output is a badge with "invalid" [text.] The URL called by shields.io is : The response of the url is :
Now, I made some change in services/sonar/sonar-base.js :
The URL called is now : The response of the url is :
And the badge text output is "passed". On this page : https://gazelle.ihe.net/sonar/web_api/api/measures?deprecated=true, if you look at the parameters of GET api/measures/component, you will read that the componentKey is deprecated since 6.6 This issue https://jira.sonarsource.com/browse/SONAR-9676 discuss about renaming componentKey to component, fixed in 6.6 |
i am also experiencing this issue, but with version 8.4.2 |
I can confirm this issue with SonarQube 8.9.1 (LTS) |
Are you experiencing an issue with...
🪲 Sonarqube 8.5 quality gate parameter componentKey
When retrieve the metrics from sonarqube instance, url used parameter named componentKey
GET /api/measures/component?componentKey=org.app%3AmyApp&metricKeys=alert_status
It seem that the parameter componentKey have been renamed to component in sonarqube.
So, it should be :
GET /api/measures/component?component=org.app%3AmyApp&metricKeys=alert_status
🔗 Link to the badge
💡 Possible Solution
In services/sonar/sonar-base.js, rename componentKey to component
qs = { componentKey: component, metricKeys: metricName, }
to
qs = { component: component, metricKeys: metricName, }
The text was updated successfully, but these errors were encountered: