Missing DevOps Platform Integration

Sonarqube: 10.0 → 10.6
Deployment method: Helm

On 10.0, we were passing in devops integration information via the scanner itself. eg.

Dsonar.pullrequest.key=2085 -Dsonar.pullrequest.branch=test -Dsonar.pullrequest.base=master -Dsonar.pullrequest.github.repository=testrepo

This seems to have been deprecated:

DevOps Platform Integration settings are no longer inferred from scanner-level analysis parameters, which were deprecated in SonarQube 8.1. To prevent pull request decoration from failing, make sure you have configured each project with the settings found under the project-level Project Settings > DevOps Platform Integration .
Release upgrade notes

In 10.6, for all existing projects, the DevOps Platform Integration setting for each project in sonar is empty, so no pull request decoration is happening. I can manually fill all of these out however we have 900+ projects.

How can I have sonar realise that these are synced from github and have the information filled out. Failing that, is there a script available to set these?

New projects do have the information filled out correctly.

Hi,

I think your best bet here is to craft some automation with the API. The best way to master the API is to perform the desired action via the UI (i.e. fill it in for one project) and eavesdrop to see which calls the UI made to accomplish the action.

You may also find this guide helpful.

 
HTH,
Ann