Fixed: Sonar failure on external forks

This commit is contained in:
Qstick 2019-12-09 21:48:14 -05:00
parent 318e05ddba
commit 803b44280f
1 changed files with 4 additions and 1 deletions

View File

@ -684,6 +684,7 @@ stages:
- job: Analyze_Frontend - job: Analyze_Frontend
displayName: Frontend displayName: Frontend
condition: eq(variables['System.PullRequest.IsFork'], 'False')
pool: pool:
vmImage: windows-2019 vmImage: windows-2019
steps: steps:
@ -697,7 +698,7 @@ stages:
scannerMode: 'CLI' scannerMode: 'CLI'
configMode: 'manual' configMode: 'manual'
cliProjectKey: 'Radarr_Radarr.UI' cliProjectKey: 'Radarr_Radarr.UI'
cliProjectName: 'RadarrI' cliProjectName: 'RadarrUI'
cliProjectVersion: '$(radarrVersion)' cliProjectVersion: '$(radarrVersion)'
cliSources: './frontend' cliSources: './frontend'
- task: SonarCloudAnalyze@1 - task: SonarCloudAnalyze@1
@ -718,6 +719,7 @@ stages:
- powershell: Set-Service SCardSvr -StartupType Manual - powershell: Set-Service SCardSvr -StartupType Manual
displayName: Enable Windows Test Service displayName: Enable Windows Test Service
- task: SonarCloudPrepare@1 - task: SonarCloudPrepare@1
condition: eq(variables['System.PullRequest.IsFork'], 'False')
inputs: inputs:
SonarCloud: 'SonarCloud' SonarCloud: 'SonarCloud'
organization: 'radarr' organization: 'radarr'
@ -735,6 +737,7 @@ stages:
TEST_DIR=_tests/netcoreapp3.1/win-x64/publish/ ./test.sh Windows Unit Coverage TEST_DIR=_tests/netcoreapp3.1/win-x64/publish/ ./test.sh Windows Unit Coverage
displayName: Coverage Unit Tests displayName: Coverage Unit Tests
- task: SonarCloudAnalyze@1 - task: SonarCloudAnalyze@1
condition: eq(variables['System.PullRequest.IsFork'], 'False')
displayName: Publish SonarCloud Results displayName: Publish SonarCloud Results
- task: reportgenerator@4 - task: reportgenerator@4
displayName: Generate Coverage Report displayName: Generate Coverage Report