New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Bitbucket Cloud] PR decoration #227
Comments
I am having the same issue as well. I have PR analyze correctly working, but when it tries to decorate I get the same error as reported in this ticket. I configured in the SonarQube project to use the correct 'project key' and 'repository slug'. I know these are correct because manual calls to the BitBucket API using these work. I configured in the SonarQube server settings a 'Pull Request Decoration configurator' for BitBucket Server (as there is no cloud available). Personal Access token is correct (also verified manually). For BitBucket Server URL I am not sure what to enter, currently I have 'https://bitbucket.org/my-team/'. |
After checking the code, I came across the original pull-request that added this feature. Is it possible that this information is added to the readme file? As the official documentation for Sonarqube does not contain it, as they don't support cloud. |
First run Go to Administration/General Settings/ALM Integrations and select Bitbucket. Now go to Projects/YOUR_EXISTING_PROJECT/Project Settings/General Settings/Pull Request Decoration. EDIT: Import of bitbucket repos does not work with SQ 8.2 and plugin 1.4.1 (built today). A red error message appears on the top stating |
Thanks for the comment, @josefschabasser . The details you provided worked with Bitbucket Cloud. I'm closing this ticket since it's already been resolved, and I'm not sure where to put his comment in the documentation but his comment will surely help a lot. |
what do you mean by |
Describe the issue
This is more of a question than a bug. So I'm using Bitbucket Cloud for our repository, the PR analysis can already be seen in the project in Sonarqube.
Under Administration -> General settings -> Pull Request decoration. I choose Bitbucket server since it's the only option for Bitbucket. I already tried both:
From the logs, it's still expecting a Bitbucket server and not Cloud but it still returrn a Status=SUCCESS
Software Versions
The sonar context can see the following information without an issue:
Maven command
I also tried to remove the sonar.pullrequest.branch but it results to a background task failure.
Is there a way to specify that it's a Bitbucket Cloud? I also checked Sonarqube documentation but it only has the information for Bitbucket server. There's an open ticket in #209 that uses Bitbucket Cloud.
Thank you.
The text was updated successfully, but these errors were encountered: