Is it possible to configure devops integration in sonarscanner

We use sonar scanner to create our projects in sonar on the first build of the project, by specifying projectname and projectkey in the environment passed to the scanner.

Our gitlab server is configured in Sonarqube administration.

But we would like to fill the Gitlab project id and configuraiotn name in the project configuration on the creation by sonar scanner.

Are there any variable that we can pass to sonar scanner to do this ?


Sorry, there’s not. You can script this though, using the same Web API calls that the UI does.

The best way to master the API is to perform the desired action via the UI and eavesdrop to see which calls the UI made to accomplish the action.

You may also find this guide helpful.