We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 8aa23d5 commit 5aa62d4Copy full SHA for 5aa62d4
build.ps1
@@ -15,9 +15,10 @@ if ($isLinux) {
15
}
16
} else {
17
$prNumber = $env:APPVEYOR_PULL_REQUEST_NUMBER
18
- if ($prNumber)
19
- {
+ if ($prNumber) {
20
$prArgs = -d:sonar.pullrequest.key=$prNumber
+ } elseif ($env:APPVEYOR_REPO_BRANCH) {
21
+ $prArgs = -d:sonar.branch.name=$env:APPVEYOR_REPO_BRANCH
22
23
dotnet sonarscanner begin /k:aguacongas_DymamicAuthProviders -o:aguacongas -d:sonar.host.url=https://sonarcloud.io -d:sonar.login=$env:sonarqube -d:sonar.coverageReportPaths=coverage\SonarQube.xml $prArgs -v:$env:Version
24
0 commit comments