we recently moved from using service specific repositories (each was connected to different Sonarcloud project) to using monorepo.
from within sonarcloud project nothing should change, we still only check the scope of individual service in each project
However is seems that Sonarcloud project is tightly linked to DevOps repository and now when we create a pull request from monorepo and do a sonar scan, we get this error:
##[error]ERROR: Error during SonarScanner execution
ERROR: Could not find the pullrequest with key ‘12708’
ERROR: Caused by: Error 404 on https://sonarcloud.io/api/alm_integration/show_pullrequest?project={PROJECTNAME}&pullrequestKey=12708 : {“errors”:[{“msg”:“Unable to find the pullrequest with key \u002712708\u0027”}]}
ERROR:
ERROR: Error during SonarScanner execution
ERROR: Could not find the pullrequest with key ‘12708’
ERROR: Caused by: Error 404 on https://sonarcloud.io/api/alm_integration/show_pullrequest?project={PROJECTNAME}&pullrequestKey=12708 : {“errors”:[{“msg”:“Unable to find the pullrequest with key \u002712708\u0027”}]}
So my question is - how can we update link to new DevOps repository in existing Sonarcloud project?