Mid DevOps

Install the SonarQube extension in Azure DevOps.?

Add SonarQube tasks to your build pipeline:

  • task: SonarQubePrepare@5

inputs:

SonarQube: 'MySonarServiceConnection'

scannerMode: 'MSBuild'

projectKey: 'MyProject'

projectName: 'MyApp'

  • script: dotnet build
  • task: SonarQubeAnalyze@5
  • task: SonarQubePublish@5

inputs:

pollingTimeoutSec: '300'

More from Microsoft Azure Tutorial

All questions for this course