Fixed: Sonar failure on external forks

pull/2/head
Qstick 5 years ago
parent 318e05ddba
commit 803b44280f

@ -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

Loading…
Cancel
Save