I tried switching to the .us URL, but that gives a different error.
Failed to query service connection API: 'https://sonarqube.us/api/organizations/search?member=true'. Status Code: 'Unauthorized', Response from server: ''
I think I found the remaining Bitbucket binding in General Settings → Pull Requests. I don’t see an option for GitHub in the Provider dropdown, so I just cleared it (removing Bitbucket). I’m testing now.
For each of our 4 projects **Administration > General Settings > Repository binding **, shows “GitHub repository binding” and the “Current binding” repository is correct. Save is disabled unless I change it to an incorrect repository.
For each of our 4 projects **Administration > General Settings > Pull Requests **, Provider is empty. There isn’t a GitHub option on this list. Should there be?
As an experiment, I changed the Repository binding for a single project to an incorrect one, hit Save, then changed it back. I started a new build and now it looks like SonarCloudAnalyze is working for all projects. I don’t know if someone fixed it on the backend or if my Save and re-Save flushed out some bad settings.
I jumped the gun saying this is working. What I’m seeing now is:
I create a PR in GitHub. This triggers the Pipeline in ADO. This build fails.
From ADO, if I open the pipeline run and click Run new, and run it with all of the same parameters, then it works. I have no idea why that would be.
It will sound weird, but it’s best just to leave sonar.pullrequest.provider as null. This is some old, legacy config that we plan to remove. I think it’s just useless, but it might actively be harmful if you try and configure it.
Would you be able to provide DEBUG level logs from both runs (add sonar.verbose=true). Happy to open a private message if that’s easier for you to share them that way.