Only look for the commit hash file if KOREBUILD_ADD_ASSEMBLY_INFO is set.

This commit is contained in:
Pranav K 2016-03-18 16:32:31 -07:00
parent 8c0f9c8482
commit 65d6c79612
1 changed files with 9 additions and 6 deletions

View File

@ -162,6 +162,8 @@ var buildTarget = "compile"
File.Copy(source, Path.Combine(universeBuild, Path.GetFileName(source)), overwrite: true); 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"); var commitFile = Path.Combine(repoArtifacts, "commit");
if (!File.Exists(commitFile)) if (!File.Exists(commitFile))
{ {
@ -169,6 +171,7 @@ var buildTarget = "compile"
} }
commits.TryAdd(repo, File.ReadAllLines(commitFile)[0]); commits.TryAdd(repo, File.ReadAllLines(commitFile)[0]);
}
if (!string.IsNullOrEmpty(ciVolatileShare)) if (!string.IsNullOrEmpty(ciVolatileShare))
{ {