Sonar Analysis Step Suddenly failing

  • ALM used → Azure DevOps
  • CI system used → Azure DevOps
  • Error observed (wrap logs/code around with triple quotes ``` for proper formatting)
  • Steps to reproduce
  • Potential workaround

Dear Team,

since friday we have an issue with SonarCloud, precisely with the Sonar Analysis Step in our Quality Gate Pipeline. It throws this error: “Could not find the pullrequest with key ‘xxxx’“

Unfortunatelly we had to disable the quality gate to not block our developers. I have already opened a ticket this morning → TicketID #65645

We already renewed the Private Access Token ob both sides (Azure Devops and SonarCloud). Unfortunatelly it didn´t help. Is there maybe an issue on SonarCloud side? Can you please help us resolve the issue?


ERROR: Caused by: Error 404 on https://sonarcloud.io/api/alm_integration/show_pullrequest?project=Geberit_B2C-Cloud&pullrequestKey=101216 : {"errors":[{"msg":"You don\u0027t have permission, or the provided pullrequest with key \u0027101216\u0027 doesn\u0027t exist."}]}


ERROR:


ERROR: Could not find the pullrequest with key '101216'


ERROR: Caused by: Error 404 on https://sonarcloud.io/api/alm_integration/show_pullrequest?project=Geberit_B2C-Cloud&pullrequestKey=101216 : {"errors":[{"msg":"You don\u0027t have permission, or the provided pullrequest with key \u0027101216\u0027 doesn\u0027t exist."}]}


ERROR: 


##[error]The SonarScanner did not complete successfully


The SonarScanner did not complete successfully


##[error]14:56:04.57  Post-processing failed. Exit code: 1


14:56:04.57  Post-processing failed. Exit code: 1


##[error][ERROR] SonarQube Cloud: Error while executing task Analyze: The process 'E:\agent\_work\_tasks\SonarCloudPrepare_14d9cde6-c1da-4d55-aa01-2965cd301255\3.4.3\classic-sonar-scanner-msbuild\SonarScanner.MSBuild.exe' failed with exit code 1


##[error]The process 'E:\agent\_work\_tasks\SonarCloudPrepare_14d9cde6-c1da-4d55-aa01-2965cd301255\3.4.3\classic-sonar-scanner-msbuild\SonarScanner.MSBuild.exe' failed with exit code 1






Best regards
Nino

Issue has been solved. We updated the PAT in the wrong area. After correcting it everything works now again. Feel free to close the thread.

1 Like