Collect commit files from artifacts directory

This commit is contained in:
Nate McMaster 2017-03-03 10:07:49 -08:00
parent ba69cd5df4
commit c598f1918d
1 changed files with 3 additions and 6 deletions

View File

@ -262,13 +262,10 @@ var buildProperties = "/p:Configuration=Debug"
File.Copy(source, Path.Combine(universeBuild, Path.GetFileName(source)), overwrite: true);
}
if (Environment.GetEnvironmentVariable("KOREBUILD_ADD_ASSEMBLY_INFO") == "1")
var commitFile = Path.Combine(repoArtifacts, "commit");
if (File.Exists(commitFile))
{
var commitFile = Path.Combine(repoArtifacts, "commit");
if (File.Exists(commitFile))
{
commits.TryAdd(repo, File.ReadAllLines(commitFile)[0]);
}
commits.TryAdd(repo, File.ReadAllLines(commitFile)[0]);
}
if (!string.IsNullOrEmpty(ciVolatileShare))