mirror of
https://dev.azure.com/effectory/Survey%20Software/_git/Cloud%20Engineering
synced 2026-02-27 18:52:18 +01:00
Merged PR 63702: Add Sonar Client to update permissions and tags in Sonar Projects to new team structure
Add Sonar Client to update permissions and tags in Sonar Projects to new team structure Related work items: #125680
This commit is contained in:
47
_azuredevops/cloud-engineering.yml
Normal file
47
_azuredevops/cloud-engineering.yml
Normal file
@@ -0,0 +1,47 @@
|
||||
trigger:
|
||||
branches:
|
||||
include:
|
||||
- master
|
||||
pool:
|
||||
vmImage: 'windows-latest'
|
||||
|
||||
variables:
|
||||
repositoryName: $(Build.Repository.Name)
|
||||
buildConfiguration: release
|
||||
|
||||
stages:
|
||||
- stage: build
|
||||
displayName: 'Build for branch policy validation'
|
||||
jobs:
|
||||
- job: build
|
||||
displayName: 'Build solution'
|
||||
steps:
|
||||
- task: SonarCloudPrepare@3
|
||||
inputs:
|
||||
SonarCloud: SonarCloud
|
||||
organization: effectory
|
||||
scannerMode: dotnet
|
||||
projectKey: platform-cloud-engineering
|
||||
projectName: repositoryName
|
||||
extraProperties: |
|
||||
sonar.exclusions=**/obj/**,**/*.dll
|
||||
sonar.cs.vstest.reportsPaths=$(Agent.TempDirectory)/**/*.trx
|
||||
sonar.cs.opencover.reportsPaths=$(Agent.TempDirectory)/**/coverage.opencover.xml
|
||||
sonar.coverage.exclusions=**/*
|
||||
sonar.scm.enabled=true
|
||||
sonar.scm.provider=git
|
||||
sonar.pullrequest.provider=vsts
|
||||
|
||||
- task: DotNetCoreCLI@2
|
||||
displayName: 'dotnet build console apps'
|
||||
inputs:
|
||||
command: build
|
||||
projects: |
|
||||
ConsoleApps/**/*.csproj
|
||||
arguments: '-c $(buildConfiguration)'
|
||||
|
||||
- task: SonarCloudAnalyze@3
|
||||
|
||||
- task: SonarCloudPublish@3
|
||||
inputs:
|
||||
pollingTimeoutSec: '300'
|
||||
Reference in New Issue
Block a user