- ALM used: Azure DevOps
- CI system used: Azure DevOps
- Scanner command used when applicable (private details masked)
- Languages of the repository C++23, C#
- Error observed (wrap logs/code around with triple quotes ``` for proper formatting)
In SonarCloud Warning in last analysis: File …\sonar\compile_commands.json
was generated using build-wrapper version 6.82.1-SNAPSHOT,
which does not match the analyzer version 6.82.1.100194. - Steps to reproduce
Download latest build wrapper
- task: PowerShell@2
inputs:
pwsh: true
targetType: inline
workingDirectory: '$(SelfRepoRoot)'
script: |
$buildWrapperUri='$(SonarCloudUrl)static/cpp/build-wrapper-win-x86.zip'
$buildWrapperZip='$(Agent.TempDirectory)/build-wrapper.zip'
Invoke-WebRequest -Uri $buildWrapperUri -OutFile $buildWrapperZip
Expand-Archive -Path $buildWrapperZip -DestinationPath '$(Build.BinariesDirectory)' -Force
Use .Net scanner from Azure DevOps Extension (used version 4.2.5)
- task: SonarCloudAnalyze@4
inputs:
jdkVersion: JAVA_HOME