From 9947985b87dbcffc5cdafe6e412e07ccd4f3f95c Mon Sep 17 00:00:00 2001 From: Travis Plunk Date: Tue, 21 Aug 2018 16:55:18 -0700 Subject: [PATCH] Don't upload artifacts during pull request due to missing VSTS feature (#7588) --- tools/appveyor.psm1 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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;]$_" }