Target:
I’m trying to automate the sonar report to Bitbucket
1.Generated a personal access token with admin credentials in BitBucket.
2.Configured this personal access token and bitbucket URL in SonarQube >> Administration >> Devops platform integration
3.Set up multi-pipeline as tutorial to analyze PR
Result: All branch can analyze and show pull request in Sonar, but no report import to Bitbucket
Thanks for your reply. I just check the log and found all success, but I think the issue maybe the account . The ce.log shows the submitter is admin(sonar admin).
I’m confused about below context:
“This personal access token is used to report your Quality Gate status to your pull requests. You’ll be asked for another personal access token for importing projects in the following section.”
The account I created is:
A bitbucket admin account and it’s token , then use it in “Devops platform integration”. Then it list the bitbucket project repos after added.
A sonar token for Jenkins ci pipeline
The global setting show like screen, and no sonar record shows in Bitbucket. BTW, Only pull request can link with sonar and show records? While branch commit and multi-pipeline jobs trigger sonar scan then also can’t got sonar records in Bitbucket?