DevOps Platform Integration with Bitbucket configuration via sonar.properties file

Hello,

We are using SonarQube Enterprise Edition v10.5.1 (90531).

We configure our projects on SonarQube via sonar.properties file.
However we are lacking of the DevOps Platform Integration with Bitbucket configuration.
After some search on the Internet, we have found some parameters that can specify the configuration but none of them are working. I don’t think that these are the correct ones.

sonar.projectKey=com.example.mdt-test:java-spring
sonar.projectName=MDT Test Java Spring
sonar.sourceEncoding=UTF-8
sonar.verbose=true
sonar.language=java
sonar.java.binaries=target/classes

sonar.pullrequest.provider: Bitbucket
sonar.pullrequest.bitbucket.serverUrl=https://mgit001
sonar.pullrequest.bitbucket.projectKey=MDT
sonar.pullrequest.bitbucket.repositorySlug=mdt-test

We are creating all the projects automatically via these properties files that’s why configuring the Bitbucket integration as part of these files is very crucial for us in order to create our development pipelines without human intervention.

Can you please help us with how to configure the DevOps Platform Integration with Bitbucket via our properties file?

Thanks in advance.

Kind regards,
Cihan

Hey there.

DevOps Platform Integration settings simply cannot be set via a sonar-project.properties file.’

We would like to make project creation simpler in the future – we already took some steps to auto-configure projects when provisioned via GitHub Actions. Bitbucket would be a logical next step.

For now, you must either configure the DevOps Platform Integration in the UI, or via the Web API.

Thanks a lot for the clear answer, @Colin.

Having the auto-configuration available on Bitbucket would be really a good step to take.

Until that day, we have to invest in WebAPI integration that to automatize the pipeline.