Skip to content

Commit

Permalink
update appveyor config
Browse files Browse the repository at this point in the history
  • Loading branch information
rheamachineuser committed Jun 24, 2020
1 parent 394b359 commit c348f7c
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions appveyor.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,10 @@ environment:
DOTNET_SKIP_FIRST_TIME_EXPERIENCE: true
SONARCLOUD_PROJECT_KEY: RHEAGROUP_CDP4-SDK-Community-Edition
SONARCLOUD_ORGANIZATION: rheagroup
SONARCLOUD_TOKEN: e3ee7273bfce14712e6521cbe48ca53b820aa5b9
SONARCLOUD_TOKEN:
secure: t9Adl8VvYx+PRNMC3aXmpSErjxmh/LaCV52WW1X/IxGgjkGYRTf7ZYcNs4s3Fqrt

skip_branch_with_pr: true

for:
# configuration for "master" branch, build in Release mode
Expand All @@ -29,11 +32,11 @@ before_build:
- cmd: nuget restore
- ps: >-
if ($env:APPVEYOR_PULL_REQUEST_NUMBER){
Write-Host Scanning $env:APPVEYOR_REPO_BRANCH, PR# $env:APPVEYOR_PULL_REQUEST_NUMBER
SonarScanner.MSBuild.exe begin /key:$env:SONARCLOUD_PROJECT_KEY /o:$env:SONARCLOUD_ORGANIZATION /d:sonar.host.url="https://sonarcloud.io" /d:sonar.login=$env:SONARCLOUD_TOKEN /d:sonar.pullrequest.key=$env:APPVEYOR_PULL_REQUEST_NUMBER /d:sonar.pullrequest.base=$env:APPVEYOR_REPO_BRANCH /d:sonar.pullrequest.branch=$env:APPVEYOR_PULL_REQUEST_HEAD_REPO_BRANCH
Write-Host Scanning PR: $env:APPVEYOR_PULL_REQUEST_NUMBER
SonarScanner.MSBuild.exe begin /key:$env:SONARCLOUD_PROJECT_KEY /o:$env:SONARCLOUD_ORGANIZATION /d:sonar.host.url="https://sonarcloud.io" /d:sonar.login=$env:SONARCLOUD_TOKEN /d:sonar.pullrequest.key=$env:APPVEYOR_PULL_REQUEST_NUMBER /d:sonar.pullrequest.provider=GitHub /d:sonar.pullrequest.github.repository=$env:APPVEYOR_REPO_NAME
}
else {
Write-Host Scanning $env:APPVEYOR_REPO_BRANCH
Write-Host Scanning branch: $env:APPVEYOR_REPO_BRANCH
SonarScanner.MSBuild.exe begin /key:$env:SONARCLOUD_PROJECT_KEY /o:$env:SONARCLOUD_ORGANIZATION /d:sonar.host.url="https://sonarcloud.io" /d:sonar.login=$env:SONARCLOUD_TOKEN
}
build:
Expand Down

0 comments on commit c348f7c

Please sign in to comment.