Quality summary widget not displaying on pull requests in bitbucket cloud

The widget on the repository home DOES display as usual and a call to https://bitbucket.org/!api/internal/connect/modules/{1af48e06-f5ac-4de3-abdd-3aa47a255fc2} responds with 200 from this location

Hi,

Per the FAQ, are you using any browser ad blocking extentions or anything else that would interfere with the call?

 
Ann

No, double-checked by running chrome.exe with --disable-extensions. Of note, the same api call works fine from the repository home page, just not on the pull request page (as noted in the original description).

1 Like

Hi @ebqa,

Can you share your Teamcity CI configuration which you use to run the analysis?

Regards,
Ismail

There is no problem scanning - scanning works just fine and the sonar report posts back to the PR in bitbucket.org just fine, so there is a link and status in the builds section for sonar results as well as the SonarCloud Code Analysis in the Reports section. It’s just the summary widget at the top of the PR page that no longer displays.

Hi @ebqa,

I understand that it is working. I wanted to try to simulate your use case.
Can you tell me what the call to https://sonarcloud.io/integration/bitbucketcloud/pr_widget_data returns when you open the PR page?

Oh, gotcha. https://sonarcloud.io/integration/bitbucketcloud/pr_widget_data does not get called when opening a pr page.

Here you go:

dotnet sonarscanner begin     
/k:$sonarkey
/o:$org     
/d:sonar.host.url="$sonarhost"     
/d:sonar.login="$sonartoken"     
/v:"$imageversion"      
/d:sonar.scm.revision=blah
/d:sonar.pullrequest.key=363
/d:sonar.pullrequest.base=develop
/d:sonar.pullrequest.branch=feature/blah-322
&& dotnet build 
&& dotnet test --no-build --no-restore 
&& dotnet sonarscanner end /d:sonar.login="$sonartoken" 

Hi Erik,

Per our private conversation, there seem to be no errors in our logs concerning your project. So, as suggested, please try re-installing the SonarCloud integration on Bitbucket to fix the issue.

Regards,
Ismail

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.