PR decoration issue in Bitbucket + Azure DevOps

  • which versions are you using (SonarQube Server / Community Build, Scanner, Plugin, and any relevant extension) - * Developer Edition v2025.2 (105476)
  • how is SonarQube deployed: zip, Docker, Helm - Docker
  • what are you trying to achieve - PR decoration
  • what have you tried so far to achieve this - We have our repo in Bitbucket & we use Azure DevOps for CI part. From Administrations → DevOps Platform Integrations, we have integrated both Bitbucket & Azure DevOps. But in the “Publish Quality Gate Result” stage we are getting below error.

Starting: Publish Quality Gate Result
==============================================================================
Task         : Publish Quality Gate Result
Description  : Publish SonarQube Server's Quality Gate result on the Azure DevOps build result, to be used after the actual analysis.
Version      : 7.2.0
Author       : sonarsource
Help         : [More Information](https://docs.sonarsource.com/sonarqube/latest/analyzing-source-code/scanners/sonarqube-extension-for-azure-devops/)
==============================================================================
[INFO]  SonarQube Server: Server version: 2025.2.0.105476
[INFO]  SonarQube Server: Task 4484c5e6-81ee-41bb-bad4-a8c269f11cca completed
[INFO]  SonarQube Server: Analysis succeeded with warning: Scanner parameters to decorate pull requests are deprecated. Please remove these parameters from your analysis.
[INFO]  SonarQube Server: Analysis succeeded with warning: Pull request decoration did not happen. Configuration missing to decorate the Bitbucket Cloud pull request: BitbucketServerPrConfiguration{workspace=null, repository='Contour', id=53, headRevision='db9c4a1d0a10fd62b9b08b801a5db20d129af646', clientId=null, clientSecret=null}
[INFO]  SonarQube Server: Overall Quality Gate status: ok
Finishing: Publish Quality Gate Result

Hi,

Welcome to the community!

Let’s start at the beginning. How did you initially create your project in SonarQube? Did you import it via the onboarding wizard?

 
Ann

Hello,

Yes, I think. I imported it from Azure DevOps.

Hi,

Can you check the project-level configuration and see if there’s a PAT configured there? I think it might have expired.

 
Ann

Hi,

Do I need to check below setting?

Is it possible to setup a meeting so that we can fix this issue on priority basis?

Hi,

The ability to add/edit version info on an analysis is available to anyone with project admin perms. There’s no way to disable that.

 
Ann

Hi,

I didn’t get that. My query was related to PR decoration.

Hi,

Sorry. I got you confused with a different thread.

I was asking that you check for a PAT set in the project configuration. Your screenshot is of org-level configuration.

 
Ann

Hi,

I couldn’t exactly find an option to check PAT token in Project setting. Still sharing below screenshot for your reference.

It’s taking too much time in back & forth. Can we schedule a call to troubleshoot this?

Hi,

No. We don’t do calls.

What’s at the bottom of that screen?

 
Ann

This is the bottom part

Hi,

Thanks for the second screenshot.

Going back through the thread, I’m a little confused.

Does the code live in Bitbucket or Azure? You shouldn’t have been able to import from ADO a repo that lives in Bitbucket (and vice versa).

 
Ann

As I mentioned in the beginning, code is in Bitbucket and we use Azure DevOps for CI part. SonarQube is configured inside CI pipeline, that’s why it’s showing in that way I suppose.

Do you have any article for step by step process to achieve this usecase?

Hi,

So where do you expect the decoration to be showing up? In Bitbucket, where the code - and presumably the PR - lives?

Because your screenshots show that the configured DevOps Platform Integration for the project is ADO. Which would send the PR decoration to ADO. But presumably, that’s not where the PR exists, only where it was processed.

 
Ann

HI Ann,

Thanks for your reply.

After integrating with bitbucket, the issue has been fixed now