##[error]ERROR: Error during SonarScanner execution
ERROR: Error during SonarScanner execution
##[error]ERROR: Could not find the pullrequest with key '1098'
ERROR: Caused by: Error 404 on https://sonarcloud.io/api/alm_integration/show_pullrequest?project=********&pullrequestKey=1098 : {"errors":[{"msg":"Requested resource wasn\u0027t found on Azure DevOps.","reason":"AZURE_DEVOPS_UNABLE_TO_FETCH_REQUESTED_RESOURCE"}]}
ERROR:
ERROR: Could not find the pullrequest with key '1098'
ERROR: Caused by: Error 404 on https://sonarcloud.io/api/alm_integration/show_pullrequest?project=************&pullrequestKey=1098 : {"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]17:38:52.568 Post-processing failed. Exit code: 1
17:38:52.568 Post-processing failed. Exit code: 1
##[error]The process 'D:\a\_tasks\SonarCloudPrepare_{some_GUID_here}\1.22.0\classic-sonar-scanner-msbuild\SonarScanner.MSBuild.exe' failed with exit code 1
Finishing: Run Code Analysis
I trying to integrate PR analysis. Simple branch analysis works fine.
For configuring PR integration I’ve used next tutorial: https://azuredevopslabs.com/labs/vstsextend/sonarcloud/
Are other projects in your organization affected, or just this one (or is this the first project you’ve tried activating PR analysis for?)
Please have an organization administrator check the status of your Azure DevOps PAT configured under organization-level Administration > Organization settings > Azure DevOps connectivity management
Have you made sure to use the private key? Is it possible you are trying to run this pipeline, not on the precise same repository the project was provisioned for?
We recently were able to track down an issue for a user here:
The pipeline must be run on precisely the same repository as the project is bound to.