Writing to get some help reg, PR Decorations. The SONAR binding is done with the Azure DevOps, The tools we’re using are Bitbucket repository and Azure DevOps.
We’ve been able to configure the SONAR to run on the CI pipeline in the Azure DevOps and through the same pipeline it also triggers for PRs.
We haven’t been able to manage to configure SONAR for PR Decorations, where we’re expecting the SONAR to directly comment on the Pull Request in the Bitbucket Repo.
It’d be great if you can help us configure this, or provide some specific guidance/documentation to achieve the same.
If your repo is in Bitbucket, your SonarQube Cloud organization needs to be bound to Bitbucket (and your project bound to a Bitbucket repo), otherwise you won’t be able to receive PR decorations on your PRs!
You will not be able to use your existing organization for this, and will need to create a new one.
We are on a Team plan and in that case will we be able to delete the existing organization and transfer the plan to the new Organization?
In addition to this, when we change the binding of the SONAR to the Bitbucket repo, I hope it’ll not impact on the CI pipeline and SONAR will work for the Azure DevOps pipelines.
If you have a yearly subscription for your current organization, a new coupon can be issued for your new organization by reaching out to your sale representative.
If you have a monthly subscription by credit card, you can simply stop your subscription on the old organization and re-subscribe on the new one.
Can you please confirm if these changes will have any issue/impact on the CI pipeline already configured on the Azure DevOps. Obviously I understand one thing, this organization will be void so I’ll have to generate another PAT for DevOps usage.
If you create a new organization you will need to make sure that the:
The Service Connection configured uses a token when Execute Analysis permissions in the new org
That you have updated the organization key and project key in your azure-pipelines.yml file (or a sonar-project.properties file if that’s where you store it)