Skip to content

Commit e1cf3d1

Browse files
committed
Update adt_pull_request.yml for Azure Pipelines
1 parent a36761b commit e1cf3d1

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

adt_pull_request.yml

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,4 +33,11 @@ steps:
3333
command: test
3434
projects: '**/*[Tt]ests/*.csproj'
3535
arguments: '--configuration $(BuildConfiguration) /p:CollectCoverage=true /p:CoverletOutput=../TestResults/ /p:CoverletOutputFormat="json%2ccobertura" /p:MergeWith=../TestResults/coverage.json /p:ThresholdType=branch /p:Threshold=$(codeCoverageBranchThreshold) /p:ThresholdStat=total'
36-
publishTestResults: false
36+
publishTestResults: false
37+
38+
- task: DotNetCoreCLI@2
39+
displayName: 'Rodando SonarScanner '
40+
inputs:
41+
command: custom
42+
custom: tool
43+
arguments: 'dotnet sonarscanner begin /k:"$(SONAR_PROJECT_KEY)" /d:sonar.host.url="https://sonarcloud.io" /d:sonar.login="$(SONAR_TOKEN)" /d:sonar.cs.dotcover.reportsPaths=.\TestResults\coverage.json dotnet build –no-incremental dotnet sonarscanner end /d:sonar.login="$(SONAR_TOKEN)"'

0 commit comments

Comments
 (0)