Skip to content

Commit 10ac7b0

Browse files
committed
Update adt_pull_request.yml for Azure Pipelines
1 parent 5e17224 commit 10ac7b0

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

adt_pull_request.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ steps:
4141
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'
4242
publishTestResults: false
4343

44-
- script: dotnet sonarscanner begin /k:"${env:SONAR_PROJECT_KEY}" /d:sonar.host.url="https://sonarcloud.io" /d:sonar.login="${env:SONAR_TOKEN}" /d:sonar.cs.dotcover.reportsPaths=dotCover.Output.html
44+
- 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=dotCover.Output.html
4545
displayName: 'Rodando SonarScanner '
4646

4747
- script: dotnet build –no-incremental
@@ -50,5 +50,5 @@ steps:
5050
- script: dotnet dotcover test --dcReportType=HTML
5151
displayName: 'Rodando SonarScanner '
5252

53-
- script: dotnet sonarscanner end /d:sonar.login="${env:SONAR_TOKEN}"
53+
- script: dotnet sonarscanner end /d:sonar.login="%SONAR_TOKEN%"
5454
displayName: 'Rodando SonarScanner '

0 commit comments

Comments
 (0)