Required information:
SQ version 8.9
Developer Edition
Details:
We use a Sonarqube + Bitbucket + Bamboo toolchain and are experiencing a failure at the time SonarQube attempts to inform Bitbucket about the Pull Request scan report. This is a requirement if the Code Insights option in Bitbucket is turned on to report annotations for the Pull Requests.
Work flow and error occurrence is as follow:
- Pull request initiated in Bitbucket (successful)
- Bamboo build job executes and initiates SonarQube scan (successful)
- SonarQube scan executes (successful)
- Bitbucket ‘Merge’ feature is blocked due an unknown issue between SonarQube and Bitbucket:
- SonarQube pull request scan completes, with the following warning: Failed to create Bitbucket Server Quality Report for commit SHA ‘82c414bba6716bd2f2496ef3533ec3662fbf2bda’
- Bitbucket does not receive confirmation of the scan, with the following warning: Report with key ‘com.sonarsouce.sonarqube’ has not yet been created
- SonarQube ce.log file in Debug mode reports the following failure: Unable to contact Bitbucket server: 401 … Only the author of a report is permitted to edit it