save the .build folder during build

This commit is contained in:
Victor Hurdugaci 2016-04-05 16:17:37 -07:00
parent 616745a4b4
commit 6667fd0748
1 changed files with 10 additions and 0 deletions

View File

@ -166,6 +166,16 @@ var buildTarget = "compile"
var universeBuild = Path.Combine(universeArtifacts, "build");
var packagesPublishDir = Path.Combine(Directory.GetCurrentDirectory(), ".nuget", "publishDir");
// Snapshot the .build folder
if (!IsLinux)
{
Exec("cmd", "/C xcopy /S/Q/I/Y .build " + Path.Combine(universeArtifacts, ".build"), "");
}
else
{
CopyFolder(".build", Path.Combine(universeArtifacts, ".build"), true);
}
var blockLogger = Log as IBlockLogger;
var commits = new ConcurrentDictionary<string, string>();
var threads = int.Parse(Environment.GetEnvironmentVariable("UNIVERSE_THREADS") ?? "4");