Thanks, Colin @Colin
I tried 5.13, the issue persists.
Here is the latest pipeline yaml:
resources:
repositories:
- repository: Dependency
type: githubenterprise
endpoint: https://github.azc.ext.xxx.com
name: cloud-client/Dependencytrigger: none
pool: ‘Windows2022-DEV’
variables:
buildPlatform: ‘x64’
buildConfiguration: ‘Release’steps:
checkout: self
checkout: Dependency
script: |
move Dependency/KHPLib $(Build.SourcesDirectory)task: NuGetToolInstaller@1
task: PowerShell@2
inputs:
targetType: ‘inline’
script: |
Invoke-WebRequest -Uri ‘https://sq.corp.xxxcloud.net/static/cpp/build-wrapper-win-x86.zip’ -OutFile ‘build-wrapper.zip’
Expand-Archive -Path ‘build-wrapper.zip’ -DestinationPath ‘.’
Invoke-WebRequest -Uri ‘https://github.com/SonarSource/sonar-scanner-msbuild/releases/download/5.13.0.66756/sonar-scanner-msbuild-5.13.0.66756-net46.zip’ -OutFile ‘sonar-scanner-msbuild.zip’
Expand-Archive -Path ‘sonar-scanner-msbuild.zip’ -DestinationPath ‘./SonarScanner’task: VSBuild@1
inputs:
solution: ‘KHPLib\src\KHPLib\KHPLib.vcxproj’
platform: ‘$(buildPlatform)’
configuration: ‘$(buildConfiguration)’task: SonarQubePrepare@5
inputs:
SonarQube: ‘https://sq.corp.xxxcloud.net’
scannerMode: ‘CLI’
configMode: ‘manual’
cliProjectKey: ‘xxxxxx_HPCEMConnectionWizardWin’
cliSources: ‘.’
extraProperties: |
sonar.cfamily.build-wrapper-output=bw-outputtask: CmdLine@2
inputs:
script: |
SonarScanner\SonarScanner.MSBuild.exe begin /k:“xxx_HPCEMConnectionWizardWin” /n:“HPCEMConnectionWizardWin\HPCEMConnectionWizardWin.sln” /v:“1.0” /d:sonar.cfamily.build-wrapper-output=“bw-output”
build-wrapper-win-x86\build-wrapper-win-x86-64.exe --out-dir bw-output “C:\Program Files\Microsoft Visual Studio\2022\Enterprise\MSBuild\Current\Bin\MSBuild.exe” HPCEMConnectionWizardWin\HPCEMConnectionWizardWin.sln -t:Rebuild /p:configuration=release /p:platform=x64 /nodeReuse:False
SonarScanner\SonarScanner.MSBuild.exe endtask: SonarQubeAnalyze@5
task: SonarQubePublish@5
inputs:
pollingTimeoutSec: ‘300’task: sonar-buildbreaker@8
inputs:
SonarQube: ‘https://sq.corp.xxxcloud.net’
log:
log.txt (56.4 KB)
C++ code are under SRC folder:
C# code are under HPCEMConnectionWizardWin
I did not set anything in project settings: