- ALM used : Azure DevOps
- CI system used Azure DevOps
- Scanner command used when applicable (private details masked)
- task: SonarCloudPrepare@2
displayName: Intialisation à l'analyse SonarCloud
condition: and(succeeded(), ne('${{ parameters.IsSonarAnalysisToBeDone }}',false))
inputs:
SonarCloud: 'd282c99c-9a02-4d52-aefd-ba96838cbc01'
organization: 'nicolas-courtiller19594'
scannerMode: 'MSBuild'
projectKey: '${{ parameters.SonarKey }}'
-
Languages of the repository
.Net -
Error observed (wrap logs/code around with triple quotes ``` for proper formatting)
Downloading: https://github.com/SonarSource/sonar-scanner-msbuild/releases/download/6.2.0.85879/sonar-scanner-6.2.0.85879-net-framework.zip
##[error]self signed certificate in certificate chain
##[warning]Can't find loc string for key: LIB_WhichNotFound_Win
##[warning]Error while executing SonarCloud:Prepare task: LIB_WhichNotFound_Win D:\AzDvOps_work\1\s\SonarScanner.MSBuild.exe
##[error]LIB_WhichNotFound_Win D:\AzDvOps_work\1\s\SonarScanner.MSBuild.exe
- Steps to reproduce
A few words about this :
I have no problem when I use SonarCloud tasks V2 on Azure cloud agents (we tried the v2 tasks because of the deprecation of codecoverage.exe on thoses agents).
But when I try it on our self hosted agents, I have download errors…
We have add in our white list the 2 “new” url as asked in your v2 documentation :
SonarScanner for Azure DevOps & SonarCloud Docs (sonarsource.com)
When running @2 tasks, internet access is required by the pipelines calling the .NET or CLI scanners:
- Access to github.com is required to download the SonarScanner for .NET.
- Access to binaries.sonarsource.com is required to download the SonarScanner CLI.
And our agent version is :
Current agent version: '3.220.2'
For users running on-premise or using self-hosted agents, the minimum agent version for SonarCloud v2 tasks is 3.218.0.
So I don’t know what to do to solve this problem … some help could be great please!
- Potential workaround
Use v1 task version