Warning on build-wrapper and scanner version mismatch

  • 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

Hello @milbrandt,

Thanks for the report. This is a harmless false positive. Your analysis is not affected and there’s nothing you need to change

It’s caused by a minor versioning glitch on our side in the 6.82.1 build-wrapper. The warning will go away on its own with the next regular release, which should happen soon

Sorry for the noise, and thanks for flagging it

Thanks @mostafa.mohammed
This is what I expected as the analysis is running - it was only as feedback for you to fix the release.