[ERROR] Analyzing GitHub PR - Manual Analysis

I am trying run analyzes for a PR, at project below and I am receiving this error:
[ERROR] Failed to execute goal org.sonarsource.scanner.maven:sonar-maven-plugin:3.9.1.2184:sonar (default-cli) on project vianuvem: Could not find the pullrequest with key '156': Error 404 on https://sonarcloud.io/api/alm_integration/show_pullrequest?project=acesso-io_auto-backend&pullrequestKey=156 : {"errors":[{"msg":"The pullrequest could not be found"}]}

I have another projects in organization with GitHub and with same command and is working.

I already delete project and import from GitHub again, and the error persists.

  • ALM used: GitHub
  • CI system used: Jenkins
  • Scanner command used:
    mvn -B org.sonarsource.scanner.maven:sonar-maven-plugin:sonar -Dsonar.login=${SONAR_TOKEN} -Dsonar.projectKey=acesso-io_auto-backend -Dsonar.projectName=auto-backend -Dsonar.organization=unico-io -Dsonar.host.url=https://sonarcloud.io -Dsonar.pullrequest.key=156 -Dsonar.pullrequest.branch=test -Dsonar.pullrequest.base=master
  • Languages of the repository: Java

Hi,

It sounds like you’re doing a merge commit before analysis - either directly or your CI is being “helpful”.

 
HTH,
Ann

No @ganncamp the pull requests still open.

Hi,

The error is telling you that the commit ID doesn’t exist on the ALM side. That means the commit must have been created by your pipeline / CI agent.

 
Ann

But exists:

I also try enable auto analysis and receive this error:

But this doc is not useful for my case.

I found what is wrong. My fault sorry.

I was imported a project with a similar name, but no equals.

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.