From d5ca36923979c1bf2825a7a318d4b962ca1f58e4 Mon Sep 17 00:00:00 2001 From: Pranav K Date: Mon, 29 Feb 2016 18:47:28 -0800 Subject: [PATCH] Only publish repo artifacts if they exist --- makefile.shade | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/makefile.shade b/makefile.shade index 97a34b24a3..fd362d12cf 100644 --- a/makefile.shade +++ b/makefile.shade @@ -355,7 +355,8 @@ var buildTarget = "compile" Exec("build.cmd", buildTarget, repo); } - if (!string.IsNullOrEmpty(ciVolatileShare)) + var repoArtifacts = Path.Combine(repo, "artifacts", "build"); + if (!string.IsNullOrEmpty(ciVolatileShare) && Directory.Exists(repoArtifacts)) { Log.Info("Publishing packages to " + ciVolatileShare); if (string.IsNullOrEmpty(nugetExe)) @@ -364,7 +365,7 @@ var buildTarget = "compile" } else { - NuGetPackagesAdd(Path.Combine(repo, "artifacts", "build"), ciVolatileShare); + NuGetPackagesAdd(repoArtifacts, ciVolatileShare); } }