コード例 #1
0
 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;
 }
コード例 #2
0
 private static string ToId(Project project)
 {
     return ID_FORMAT.Fmt(project.AccountName, project.Slug);
 }
コード例 #3
0
 public AppVeyorBuildDefinition(Project project)
 {
     _id = ToId(project);
     _name = project.Name;
 }