Hello,
Since 3/4 weeks we’re current running into the problem that when the SonarCloud GitLab runner is doing the sonar scan that it reports that the project is not found and that we need to check the ‘projectkey’ and ‘organisation’ properties. This is the exact error what is reported:
ERROR: Project not found. Please check the ‘sonar.projectKey’ and ‘sonar.organization’ properties, the ‘SONAR_TOKEN’ environment variable, or contact the project administrator to check the permissions of the user the token belongs to
We’ve checked our key that we have for the project and even generated new ones, but somehow it keeps displaying that the project cannot be found. I’m unable to share any links public due to our company policies. I can however share info through a private message.
ALM: GitLab Cloud
CI: GitLab Cloud
Scanner command used: dotnet-sonarscanner begin /n:$solutionName /k:“$projectKey” /v:“$version” /d:sonar.token=“$SONAR_TOKEN” /d:sonar.host.url=“https://sonarcloud.io” /d:sonar.cs.opencover.reportsPaths=“tests/**/coverage.opencover.xml” /d:sonar.coverage.exclusions=“$coverageExclusions” $sonarParams /o:“[redacted]”
We don’t have a workaround at the moment. We have currently disabled the SonarCloud step in our pipelines.
Thank you in advance.
Regards,
Michiel