Template for a good new topic, formatted with Markdown:
- ALM: Git on Azure DevOps Server (on-premise)
- CI system used: Azure DevOps Server (on-premise)
- Scanner command used when applicable (private details masked)
- Languages of the repository: C#, XAML
- Error observed (wrap logs/code around with triple quotes ``` for proper formatting)
- Steps to reproduce: Run a build
- Potential workaround: None
This is the error I get:
[ERROR] SonarQube Server: Error while executing task Publish: Task failed with status FAILED, Error message: There was an issue whilst processing the report. Please contact support with the Project Analysis ID: AZkDENqNV8ArEFXL4Bjb.
Task failed with status FAILED, Error message: There was an issue whilst processing the report. Please contact support with the Project Analysis ID: AZkDENqNV8ArEFXL4Bjb.
Commands:
- task: SonarQubePrepare@7
displayName: 'SonarQube: Prepare analysis'
inputs:
SonarQube: 'SonarCloud'
organization: '<snip>'
scannerMode: 'dotnet'
projectKey: '<snip>'
projectName: '<snip>'
projectVersion: '$(AssemblyVersion)'
extraProperties: |
sonar.host.url=https://sonarcloud.io
sonar.verbose=true
sonar.dotnet.excludeGeneratedCode=true
sonar.exclusions=**/bin/**,**/obj/**,**/*.Designer.cs,**/*.generated.cs,**/AssemblyInfo.cs,**/CompositionAssemblyInfo.cs,**/CompositionReferences.cs,**/MicrosoftLoggerExtensions.cs,**/microsoft.net.test.sdk/**,**/*.xaml,**/*.xaml.cs,BL/Composition/Impl/Composition.cs,Common/**,Config/**,HAL/**,Integration/**,**/*.cpp,**/*.c,**/*.h,**/*.hpp,**/*.cc,**/*.cxx,**/*.hxx,**/*.xml,**/*.png,**/*.json,**/*.ttf,**/*.exe,**/*.dll,**/*.jpg,**/*.nhax,**/*.zip,**/*.ico,**/*.html,**/*.sln,**/*.pbin,**/*.ps1,**/*.dat,**/*.txt,**/*.yml,**/*.sqlite,**/*.dotsettings,**/*.props,**/*.md,**/*.PREVENT_GIT_LFS_ICO,**/*.xsd,**/*.nuspec,**/*.editorconfig,**/*.nupkg,**/*.targets,**/*.datasource,**/*.ruleset,**/*.xlsx,**/*.cd,**/*.bin,**/*.tt,**/*.docx,**/*.resx,**/*.sequencediagram,**/*.wsdl,**/*.runsettings,**/*.log4net,**/*.ttinclude,**/*.xsl,**/*.bat,**/*.layout,**/*.manifest,**/*.settings,**/*.psd1,**/*.svcinfo,**/*.url,**/*.cmd,**/*.crt,**/*.gitattributes,**/*.key,**/*.py,**/*.svcmap,**/*.vssettings,**/*.psm1,**/*.csprojtest,**/*.playlist,**/*.sample,**/*.gitkeep,**/*._
sonar.test.exclusions=**/*Test*/**,**/*Tests*/**,**/*Test.cs,**/*Tests.cs,**/ComponentTests/**,**/UnitTests/**,**/IntegrationTests/**,**/RegressionTests/**,**/ComponentTest/**,**/UnitTest/**,**/IntegrationTest/**,**/RegressionTest/**
# NB: **/SourceGeneratedDocuments/* being excluded does not impact the analysis
sonar.scanner.scanAll=false
sonar.scm.use.blame.algorithm=GIT_FILES_BLAME
- task: MSBuild@1
displayName: Build Phoenix
inputs:
solution: Phoenix.sln
msbuildVersion: latest
platform: '$(BuildPlatform)'
configuration: '$(BuildConfiguration)'
msbuildArguments: >-
/p:ReleaseName=$(Wdh.ReleaseName)
/p:ResultsFolder=$(Wdh.BinariesDirectory)
/p:EnableNuget=False
/p:SkipCopyUnchangedFiles=true
/p:CopyRetryCount=500
maximumCpuCount: true
- task: VSTest@2
displayName: 'Test '
inputs:
testAssemblyVer2: |
s\**\bin\$(BuildConfiguration)\*.*(Unit|Component|Integration|Regression)Test.dll
b\**\Bin.Test\**\*.*(Unit|Component|Integration|Regression)Test.dll
searchFolder: '$(Agent.BuildDirectory)'
testFiltercriteria: 'TestCategory!=LocalRunTest'
runInParallel: true
runTestsInIsolation: true
codeCoverageEnabled: true
publishRunAttachments: false
failOnMinTestsNotRun: true
runSettingsFile: $(Build.SourcesDirectory)\Build\BuildDefinitions\CodeCoverage.runSettings
rerunFailedTests: false
continueOnError: true
- task: SonarQubeAnalyze@7
displayName: 'SonarQube: Run analysis'
- task: SonarQubePublish@7
displayName: 'SonarQube: Publish result'
inputs:
pollingTimeoutSec: 3600
condition: succeededOrFailed()