Only publish repo artifacts if they exist
This commit is contained in:
parent
2405a2f2f4
commit
d5ca369239
|
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue