The following warning is visible in the dashboard for a pull request:
Pull request decoration did not happen. Please install SonarCloud application on the Bitbucket Cloud repository's organization or user:
The analysis is being triggered from a Jenkins pipeline using the following command:
./mvnw -B sonar:sonar sonar-quality-gate:check \ -Dsonar.login=$SONAR_TOKEN \ -Dsonar.pullrequest.key=$CHANGE_ID \ -Dsonar.pullrequest.branch=$CHANGE_BRANCH \ -Dsonar.pullrequest.base=$CHANGE_TARGET \ -Dsonar.pullrequest.bitbucketcloud.owner=*** \ -Dsonar.pullrequest.bitbucketcloud.repository=*** \ -Dsonar.includeModules=*** \ -Dsonar.coverage.jacoco.xmlReportPaths=target/site/jacoco/jacoco.xml
I am using the UUIDs returned from the Bitbucket API for ‘owner’ and ‘repository’.
The analysis completes successfully (I can view the report) and the summary widget is added to the pull request showing the outcome of the expected failed quality gate. But the PR is not decorated with any warnings at the offending lines of the relevant files.
SonarCloud is listed in the installed apps in Bitbucket at Workspace settings → Installed apps.
This is the first repo I have used with SonarCloud.
How do I fix the warning and get the PR decoration to work?