Don't upload artifacts during pull request due to missing VSTS feature (#7588)

This commit is contained in:
Travis Plunk
2018-08-21 16:55:18 -07:00
committed by GitHub
parent 849f6fb147
commit 9947985b87
+1 -1
View File
@@ -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;]$_"
}