Skip to content

Commit 20b9b0b

Browse files
committed
Update adt_pull_request.yml for Azure Pipelines
1 parent c20b559 commit 20b9b0b

File tree

1 file changed

+2
-20
lines changed

1 file changed

+2
-20
lines changed

adt_pull_request.yml

Lines changed: 2 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -35,23 +35,5 @@ steps:
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'
3636
publishTestResults: false
3737

38-
- task: DotNetCoreCLI@2
39-
displayName: 'Rodando SonarScanner '
40-
inputs:
41-
command: custom
42-
custom: tool
43-
arguments: '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'
44-
45-
- task: DotNetCoreCLI@2
46-
displayName: 'Rodando SonarScanner '
47-
inputs:
48-
command: custom
49-
custom: tool
50-
arguments: 'dotnet build –no-incremental'
51-
52-
- task: DotNetCoreCLI@2
53-
displayName: 'Rodando SonarScanner '
54-
inputs:
55-
command: custom
56-
custom: tool
57-
arguments: 'sonarscanner end /d:sonar.login="$(SONAR_TOKEN)"'
38+
- script: 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)"
39+
displayName: 'Rodando SonarScanner '

0 commit comments

Comments
 (0)