Skip to content

Add publish Sonar Quality Gate results to Sonar Scanner for MSBuildΒ #863

@HofmeisterAn

Description

@HofmeisterAn

Is your feature request related to a problem? Please describe.
To analyse our projects in our build pipeline at Azure DevOps we use Sonar Scanner for MSBuild and pass the required properties to the executable. This is a very convenient way to customize the build. However, it’s still necessary to call the SonarQubePrepare@4 and SonarQubePublish@4 tasks too, to receive the quality gate results in Azure DevOps to include them into the related pull request. It should not be necessary to call the tasks.

  1. The SonarScanner has all sonar.pullrequest.* properties.
  2. GitLab CI/CD supports sonar.qualitygate.wait=true.

Describe the solution you'd like
SonarScanner.MSBuild.exe sould support something like sonar.qualitygate.wait=true and be able to report the quality gate result back to Azure without the additional tasks.

Describe alternatives you've considered
-

Additional context
-

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions