Пример #1
0
 public List <Build> BuildConfigsByConfigIdAndTag(string buildConfigId, string[] tags)
 {
     return(BuildsByBuildLocator(BuildLocator.WithDimensions(BuildTypeLocator.WithId(buildConfigId),
                                                             tags: tags
                                                             )));
 }
Пример #2
0
 public static BuildLocator WithDimensions(BuildTypeLocator buildType = null,
     UserLocator user = null,
     string agentName = null,
     BuildStatus? status = null,
     bool? personal = null,
     bool? canceled = null,
     bool? running = null,
     bool? pinned = null,
     int? maxResults = null,
     int? startIndex = null,
     BuildLocator sinceBuild = null,
     DateTime? sinceDate = null,
     string[] tags = null
     )
 {
     return new BuildLocator
                {
                    BuildType = buildType,
                    User = user,
                    AgentName = agentName,
                    Status = status,
                    Personal = personal,
                    Canceled = canceled,
                    Running = running,
                    Pinned = pinned,
                    MaxResults = maxResults,
                    StartIndex = startIndex,
                    SinceBuild = sinceBuild,
                    SinceDate = sinceDate,
                    Tags = tags
                };
 }
Пример #3
0
 public List <Build> BuildConfigsByBuildConfigId(string buildConfigId)
 {
     return(BuildsByBuildLocator(BuildLocator.WithDimensions(BuildTypeLocator.WithId(buildConfigId)
                                                             )));
 }
Пример #4
0
 public List <Build> ErrorBuildsByBuildConfigId(string buildConfigId)
 {
     return(BuildsByBuildLocator(BuildLocator.WithDimensions(BuildTypeLocator.WithId(buildConfigId),
                                                             status: BuildStatus.ERROR
                                                             )));
 }
Пример #5
0
 public List <Build> FailedBuildsByBuildConfigId(string buildConfigId)
 {
     return(BuildsByBuildLocator(BuildLocator.WithDimensions(BuildTypeLocator.WithId(buildConfigId),
                                                             status: BuildStatus.FAILURE
                                                             )));
 }
Пример #6
0
 public List <Build> SuccessfulBuildsByBuildConfigId(string buildConfigId)
 {
     return(BuildsByBuildLocator(BuildLocator.WithDimensions(BuildTypeLocator.WithId(buildConfigId),
                                                             status: BuildStatus.SUCCESS
                                                             )));
 }
Пример #7
0
 public Build LastBuildByBuildConfigId(string buildConfigId)
 {
     return(BuildsByBuildLocator(BuildLocator.WithDimensions(BuildTypeLocator.WithId(buildConfigId),
                                                             maxResults: 1
                                                             )).SingleOrDefault());
 }