-
which versions are you using (SonarQube, Scanner, Plugin, and any relevant extension)
SonarQube Developer Edition v10.5.1 (90531) -
How SonarQube was deployed: direct to azure app service
ref: GitHub - vanderby/SonarQube-AzureAppService: Instructions and files to host SonarQube on an Azure App Service without a container. -
what are you trying to achieve
On Azure Dev Ops Build pipelines running from macos-build agent: SonarQubeAnalyze runs without issue, and completes fine.
However, when we enter into SonarQubePublish task, we are met with this error:
- [SQ] API GET ‘/api/metrics/search’ failed, error is invalid json response body at https://sonarqubeappservice-asr.azurewebsites.net/api/metrics/search?f=name&ps=500 reason: Unexpected end of JSON input
SonarQubePublish
- Could not fetch metrics
SonarQubePublish
When we observed the log, we the url link for the /metrics/search however could be accessed without issue from the browser from our local machine
The end result that we hope to achieve is to be able to obtain the quality gate results back into the azure build pipeline for reporting purposes.