Hi Joe
I have another branch named develop_us apart from original one i.e develop having same code.
develop_us branch got scanned and got its report in bitbucket. but those PR changes yet not approved.
Can you please give me clarity before sonar-scanner scan it how report got reflected in bitbucket
@ashishb : nice! Bitbucket PR decoration is working now! Right now, it shows 0 issues and security hotspots. Do you have any actual bugs/issues you want to test with? Jenkinsfile is Groovy, so you won’t see any scanning done there. Do you have a Java file you can add an intentional bug just to test things?
You can add this method and it should trigger a java:S106 code smell:
Then scan your pull request again to see the issue and SonarQube annotation showing that code smell issue in your PR in Bitbucket.
Your SonarQube screenshot shows the “develop_us” branch, but your Bitbucket PR is showing the “Ashish-Battise/jenkinsfile-edite…” PR branch, so SonarQube is automatically scanning your PR now.
You can change to the PR branch in SonarQube by clicking on the drop-down and finding your PR branch: