Gitlab build pipelines failing - error 404 Error during SonarScanner execution

We have a gitlab pipeline that has been working and stable for months and months but the other day we started experiencing errors when running sonarqube scanning in our pipelines which cause the jobs to fail.

The errors read:

ERROR: Error during SonarScanner execution

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

ERROR: Caused by: Error 404 on https://sonarcloud.io/api/alm_integration/show_pullrequest?project=***********&pullrequestKey=470 : {"errors":[{"msg":"Unable to find the pullrequest with key \u0027470\u0027"}]}

Command failed with exit code 2.

I have starred out the project name for privacy reasons. I believe we have a paid account so hopefully I can get some insight into what is causing the builds to fail.

Hi @bisslad,

This is the key corresponds to the key of the Pull Request in your DevOps Platform. You need to check your gitlab. Probably somehow this PR is missing.

Best regards,
Fan

1 Like

Hello @bisslad,

Apologies for the late reply. Do you still experience the error?

Best,
Marcin