From 1471fd441d1686e08eb10c55f6c9a45a75405b26 Mon Sep 17 00:00:00 2001 From: Julien Roncaglia Date: Fri, 26 Feb 2016 11:49:20 +0100 Subject: [PATCH] Don't send artifacts to appveyor when not running under appveyor --- build/build.fsx | 19 ++++++++++--------- 1 file changed, 10 insertions(+), 9 deletions(-) diff --git a/build/build.fsx b/build/build.fsx index b52caf0..69a70f9 100644 --- a/build/build.fsx +++ b/build/build.fsx @@ -160,15 +160,16 @@ module AppveyorEx = builder let PushArtifactEx (setParams : PushArtifactParams -> PushArtifactParams) = - let parameters = setParams defaultPushArtifactParams - new System.Text.StringBuilder() - |> append "PushArtifact" - |> append parameters.Path - |> appendArgIfNotNullOrEmpty parameters.FileName "FileName" - |> appendArgIfNotNullOrEmpty parameters.DeploymentName "DeploymentName" - |> appendIfSome parameters.Type (sprintf "-Type \"%A\"") - |> toText - |> sendToAppVeyor + if buildServer = BuildServer.AppVeyor then + let parameters = setParams defaultPushArtifactParams + new System.Text.StringBuilder() + |> append "PushArtifact" + |> append parameters.Path + |> appendArgIfNotNullOrEmpty parameters.FileName "FileName" + |> appendArgIfNotNullOrEmpty parameters.DeploymentName "DeploymentName" + |> appendIfSome parameters.Type (sprintf "-Type \"%A\"") + |> toText + |> sendToAppVeyor let inline PushArtifact path = PushArtifactEx (fun p ->