diff --git a/tools/appveyor.psm1 b/tools/appveyor.psm1 index 690615cbcc..6ae6ef4b04 100644 --- a/tools/appveyor.psm1 +++ b/tools/appveyor.psm1 @@ -602,7 +602,7 @@ function Invoke-AppveyorFinish { Push-AppveyorArtifact $_ } - elseif ($env:TF_BUILD) { + elseif ($env:TF_BUILD -and $env:BUILD_REASON -ne 'PullRequest') { # In VSTS Write-Host "##vso[artifact.upload containerfolder=artifacts;artifactname=artifacts;]$_" }