Merge branch 'release' into dev

This commit is contained in:
John Luo 2016-04-13 10:24:35 -07:00
commit 55fe28286b
1 changed files with 3 additions and 1 deletions

View File

@ -115,13 +115,15 @@ var buildTarget = "compile"
#ci-pull
@{
var threads = int.Parse(Environment.GetEnvironmentVariable("UNIVERSE_THREADS") ?? "4");
var blockLogger = Log as IBlockLogger;
if (blockLogger != null)
{
blockLogger.StartBlock("Cloning repos");
}
Parallel.ForEach(repositories, repo =>
Parallel.ForEach(repositories, new ParallelOptions { MaxDegreeOfParallelism = threads }, repo =>
{
var useBuildBranch = true;
if (Directory.Exists(repo))