From 803b44280f22b4784d9bbaa0276c7780ba9bead6 Mon Sep 17 00:00:00 2001 From: Qstick Date: Mon, 9 Dec 2019 21:48:14 -0500 Subject: [PATCH] Fixed: Sonar failure on external forks --- azure-pipelines.yml | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/azure-pipelines.yml b/azure-pipelines.yml index 0177c6882..2c033c424 100644 --- a/azure-pipelines.yml +++ b/azure-pipelines.yml @@ -684,6 +684,7 @@ stages: - job: Analyze_Frontend displayName: Frontend + condition: eq(variables['System.PullRequest.IsFork'], 'False') pool: vmImage: windows-2019 steps: @@ -697,7 +698,7 @@ stages: scannerMode: 'CLI' configMode: 'manual' cliProjectKey: 'Radarr_Radarr.UI' - cliProjectName: 'RadarrI' + cliProjectName: 'RadarrUI' cliProjectVersion: '$(radarrVersion)' cliSources: './frontend' - task: SonarCloudAnalyze@1 @@ -718,6 +719,7 @@ stages: - powershell: Set-Service SCardSvr -StartupType Manual displayName: Enable Windows Test Service - task: SonarCloudPrepare@1 + condition: eq(variables['System.PullRequest.IsFork'], 'False') inputs: SonarCloud: 'SonarCloud' organization: 'radarr' @@ -735,6 +737,7 @@ stages: TEST_DIR=_tests/netcoreapp3.1/win-x64/publish/ ./test.sh Windows Unit Coverage displayName: Coverage Unit Tests - task: SonarCloudAnalyze@1 + condition: eq(variables['System.PullRequest.IsFork'], 'False') displayName: Publish SonarCloud Results - task: reportgenerator@4 displayName: Generate Coverage Report