We are using SonarCloud integrated into Azure DevOps pipelines
The name of our Azure DevOps organization was just changed, which means fhe URL has changed, and now our SonarCloud integration is broken
I can see where the organization is linked in our SonarCloud organization, but it does not appear as though I am able to change this to point to the updated URL on my own. (the page reads “This SonarCloud organization is currently connected to the following Azure DevOps organization:”… followed by a link which still points at the old DevOps URL that is no longer functional —> goes to a 404 page).
The URL of our DevOps organization is different because the DevOps org name changed. The result is that any SonarCloudAnalyze step of our pipeline on PR builds are now failing with errors because the URL has changed.
Specific errors from pipeline logs:
##[error]ERROR: Error during SonarScanner execution
ERROR: Could not find the pullrequest with key '8931'
ERROR: Caused by: Error 404 on https://sonarcloud.io/api/alm_integration/show_pullrequest?project=<REDACTED> : {"errors":[{"msg":"Requested resource wasn\u0027t found on Azure DevOps.","reason":"AZURE_DEVOPS_UNABLE_TO_FETCH_REQUESTED_RESOURCE"}]}
ERROR:
ERROR: Error during SonarScanner execution
ERROR: Could not find the pullrequest with key '8931'
ERROR: Caused by: Error 404 on https://sonarcloud.io/api/alm_integration/show_pullrequest?project=r<REDACTED> : {"errors":[{"msg":"Requested resource wasn\u0027t found on Azure DevOps.","reason":"AZURE_DEVOPS_UNABLE_TO_FETCH_REQUESTED_RESOURCE"}]}
ERROR:
##[error]The SonarScanner did not complete successfully
The SonarScanner did not complete successfully
##[error]19:14:06.04 Post-processing failed. Exit code: 1
19:14:06.04 Post-processing failed. Exit code: 1
##[error]The process '/opt/hostedtoolcache/dotnet/dotnet' failed with exit code 1
The problem is that I cannot - as an administrator of our SonarCloud organization - change the base DevOps URL. It’s the same problem as noted in the link above, where an internal Sonar person (Florian) stepped in and was able to “unbind your organization and let you bind it again to the new one”. That is not an option exposed via SonarCloud’s interface as a self-service option.
@Florian_Thoni Hi - I saw that you were the person who stepped in and was able to solve this team’s issue when their DevOps organization name changed. Can you please assist here or point me to another resource who may be able to assist?
Thanks,
Annie