From 058ceea16eb6f8bed7802891ea6d34b2d55b9bf9 Mon Sep 17 00:00:00 2001 From: ta264 Date: Wed, 19 Aug 2020 19:07:55 +0100 Subject: [PATCH] Only disable sonar tasks for fork PR --- azure-pipelines.yml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/azure-pipelines.yml b/azure-pipelines.yml index d5ed72e26..806dfc8cc 100644 --- a/azure-pipelines.yml +++ b/azure-pipelines.yml @@ -651,7 +651,6 @@ stages: - stage: Analyze dependsOn: [] displayName: Analyze - condition: eq(variables['system.pullrequest.isfork'], false) jobs: - job: Lint_Frontend @@ -681,6 +680,7 @@ stages: - job: Analyze_Frontend displayName: Frontend + condition: eq(variables['system.pullrequest.isfork'], false) pool: vmImage: windows-2019 steps: @@ -715,6 +715,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: 'readarr' @@ -733,6 +734,7 @@ stages: displayName: Coverage Unit Tests - task: SonarCloudAnalyze@1 displayName: Publish SonarCloud Results + condition: eq(variables['system.pullrequest.isfork'], false) - task: reportgenerator@4 displayName: Generate Coverage Report inputs: