Ok, it doesn’t work for me. But I get this permission requests when I try to install it.
Our setup is that we have a Organization account and not a personal account. Could that be an issue?
If yes, this means that your Azure Pipeline does trigger successfully the analysis, then go to question #2
If no, this means that you have an issue with your job on Azure Pipeline: you need to run it in debug mode and with sonar.verbose=true properties to see what’s going wrong in the logs
So you see the PR in SonarCloud: click on it to go on the details page. Do you see a warning on the right side, like:
Yes I see the branches in SonarCloud. However I noticed they have the label “Short-lived branches” and not Pull Requests. That is probably some part of the issue.
When I changed the CI to trigger on PR instead then I got this error:
ERROR: Pull request with branch does not exist on server: development
That is probably because my PR are based on the “development” branch, but the main branch in sonarcloud is master.
Is is possible to have both master and development in the same project and let the PR be based on the development branch?
Because I want to follow statistics / code quality on the master branch, but during development I want to follow the quality on each PR.
Or do I need to create two different projects for this in sonarcloud?
@Fabrice_Bellingard, I’m seeing a similar issue. Is there any way of tracking multiple long-lived branches on SonarCloud/GitHub?
For some reason, SonarCloud only detected the master branch, and the regex pattern I provided (master|develop).* to detect the master and develop branches as long-lived does nothing. Furthermore, I don’t see any of the feature branches featured as short-lived either. It looks to me like a bug, please assist.
@alexvicegrab Your issue is different from the one reported by this thread, and moreover you’ve opened a new thread on your issue Having multiple long-lived branches on GitHub -> adding a comment here will not help you to get a quicker answer.
Fair enough, but the requirement of the asker was also to have multiple long-term branches. I considered he or Fabrice may have possible comments regarding my own issue.