Example #1
0
 private Project MapBuildToProject(IBuildDetail build, string definitionName)
 {
     var project = new Project
     {
         DefinitionName = definitionName,
         Name = build.TeamProject,
         Status = build.Status,
         StartTime = build.StartTime,
         FinishTime = build.FinishTime
     };
     return project;
 }
Example #2
0
 private void AddBuildToParentProject(BuildStatus buildStatus, string definitionName, Project project, int maxRuns)
 {
     var parent = buildStatus.Projects.First(p => p.DefinitionName == definitionName);
     if (parent.Runs.Count < maxRuns)
     {
         parent.Runs.Add(project);
     }
 }