- SonarQube Enterprise Version 10.0 (build 68432)
- Azure DevOps SonarQubePrepare 5.13.0
- Azure DevOps SonarQubeAnalyze 5.13.0
- Azure DevOps SonarQubePublish 5.0.2
- Deployed with Docker
We notice SonarQube not returning the quality gate status check from Pull Requests when we don’t explicitly set the DevOps Platform Integration for each project separately (until now, we never needed to). We have a lot of projects, and we only configured the Azure DevOps settings in: Administration → Configuration → General Settings → DevOps Platform Integrations.
After upgrading to SonarQube 10.0, most projects with builds in Azure DevOps stopped reporting back the SonarQube quality checks and PR Decorations to the pull requests. Only the projects which had the Azure DevOps stored in the Project Settings kept reporting back. So there is a work around, but we don’t prefer storing those settings for almost 500 projects.
I noticed the following message in the SonarQube tasks for Azure DevOps:
##[debug][SQ] API GET: '/api/server/version' with query "undefined"
##[debug]Response: 200 Body: "10.0.0.68432"
##[debug]SonarQube version < 7.2.0 detected, falling back to default location(s) for report-task.txt file.
Task versions:
##[debug]Task 'SonarQubePrepare' already downloaded at '/agent/_work/_tasks/SonarQubePrepare_15b84ca1-b62f-4a2a-a403-89b77a063157/5.13.0'.
##[debug]Task 'UseDotNet' already downloaded at '/agent/_work/_tasks/UseDotNet_b0ce7256-7898-45d3-9cb5-176b752bfea6/2.219.0'.
##[debug]Task 'DotNetCoreCLI' already downloaded at '/agent/_work/_tasks/DotNetCoreCLI_5541a522-603c-47ad-91fc-a4b1d163081b/2.217.0'.
##[debug]Task 'PublishCodeCoverageResults' already downloaded at '/agent/_work/_tasks/PublishCodeCoverageResults_2a7ebc54-c13e-490e-81a5-d7561ab7cd97/1.219.0'.
##[debug]Task 'SonarQubeAnalyze' already downloaded at '/agent/_work/_tasks/SonarQubeAnalyze_6d01813a-9589-4b15-8491-8164aeb38055/5.13.0'.
##[debug]Task 'SonarQubePublish' already downloaded at '/agent/_work/_tasks/SonarQubePublish_291ed61f-1ee4-45d3-b1b0-bf822d9095ef/5.0.2'.