Below comment is auto generated in PR Comments at the time of PR creation and build is failing due to comment not resolved.
SonarCloud analysis warning for project "****"
The version of Java (11.0.19) you have used to run this analysis is deprecated and we will stop accepting it soon. Please update to at least Java 17. Read more here
task: SonarSource.sonarcloud.14d9cde6-c1da-4d55-aa01-2965cd301255.SonarCloudPrepare@1
displayName: ‘Prepare analysis on SonarCloud’
inputs:
SonarCloud: SonarServer
organization: TVCthc
projectKey: ‘TVC..Server’
projectName: 'TVC..Server’
projectVersion: '${{parameters.Version}}’
extraProperties: |
# Additional properties that will be passed to the scanner,
# Put one key=value per line, example:
sonar.coverage.exclusions =/Tests//*.cs,/Program.cs,/Startup.cs,/*HostedService.cs,/DI/*,/TVC.Common/TVC.Configuration/*Settings.cs,/TVC.DI/,/Validators/,/Migration*.cs,/Mappings/*Mapping.cs,/TVC.Managers.Infrastructure/,/TVC.Wireless.Auth/IdentityServerData*,/TVC.Wireless.Auth.Controllers/IdentityServerData/,/TVC.Wireless.Auth.Controllers/RenderData/,Pipelines.Sockets,/SwaggerExamples/, /TVC.History.Services/ElasticService.cs
sonar.exclusions=/Migration/, /Mappings/, /TVC.ThirdParty/, /SwaggerExamples/
sonar.cs.opencover.reportsPaths=$(Build.SourcesDirectory)//coverage.opencover.xml
It looks like you have the SonarCloudAnalyze task twice, once without the SonarCloudPrepare task, which is throwing the error you get in the last screenshot you shared.