public AppVeyorBuildStatus(string buildUrl, Project project, ProjectBuild build, BuildDefinitionSetting buildDefinitionSetting) { BuildDefinitionId = buildDefinitionSetting.Id; Name = "{0} ({1})".Fmt(project.Name, build.Version); BuildStatusEnum = BuildStatusEnum.Unknown; StartedTime = build.Started; FinishedTime = build.Finished; BuildStatusMessage = build.Status; Url = buildUrl; BuildId = build.BuildId; BuildStatusEnum = ToBuildStatusEnum(build.Status); RequestedBy = (string.IsNullOrEmpty(build.AuthorName)) ? build.AuthorName : build.CommitterName; Comment = build.Message; }
private static string ToId(Project project) { return ID_FORMAT.Fmt(project.AccountName, project.Slug); }
public AppVeyorBuildDefinition(Project project) { _id = ToId(project); _name = project.Name; }