I’m using Azure DevOps
- CI system used : Azure DevOps
- C# .NET Core 3.1
My pipeline is simple, just to use the Sonarcloud for the first time and it is executing fine, but not sending data to the Sonarcloud project.
A copy my pipeline:
trigger:
- master
pool: ‘Servers CI’
variables:
solution: ‘**/*.sln’
buildPlatform: ‘Any CPU’
buildConfiguration: ‘Release’
steps:
-
task: UseDotNet@2
displayName: ‘Install .NET Core SDK’
inputs:
version: 3.1.x
performMultiLevelLookup: true -
task: SonarCloudPrepare@1
inputs:
SonarCloud: ‘Sonarcloud SecCert’
organization: ‘coelsa’
scannerMode: ‘MSBuild’
projectKey: ‘Coelsa_SecCert’
projectName: ‘SecCert’ -
task: DotNetCoreCLI@2
inputs:
command: ‘build’
projects: ‘**/*.csproj’ -
task: ReviewApp@0
inputs:
resourceName: ‘SonarSec’
As I said the pipeline is executing fine but no information at all in the Sonarcloud site about the project.
And if I add the SonarCloudPublish I’m receiving an error:
##[error][SQ] Could not fetch metrics
##[error][SQ] API GET ‘/api/metrics/search’ failed, error was: {“code”:“UNABLE_TO_VERIFY_LEAF_SIGNATURE”}
##[error][SQ] API GET ‘/api/server/version’ failed, error was: {“code”:“UNABLE_TO_VERIFY_LEAF_SIGNATURE”}
Any suggestion about this?
Thanks a lot in advance!!!