Exemplo n.º 1
0
 public BuildQuery BuildQuery(BuildTypeLocator buildType = null,
     UserLocator user = null,
     string agentName = null,
     BuildStatus? status = null,
     bool? personal = null,
     bool? canceled = null,
     bool? running = null,
     bool? pinned = null,
     BuildLocator sinceBuild = null,
     DateTime? sinceDate = null,
     string[] tags = null
     )
 {
     return new BuildQuery(_caller)
     {
         Locator = BuildLocator.WithDimensions(
             buildType: buildType,
             user: user,
             agentName: agentName,
             status: status,
             personal: personal,
             canceled: canceled,
             running: running,
             pinned: pinned,
             sinceBuild: sinceBuild,
             sinceDate: sinceDate,
             tags: tags)
     };
 }
Exemplo n.º 2
0
 public List <Build> ErrorBuildsByBuildConfigId(string buildConfigId)
 {
     return(ByBuildLocator(BuildLocator.WithDimensions(BuildTypeLocator.WithId(buildConfigId),
                                                       status: BuildStatus.ERROR
                                                       )));
 }
Exemplo n.º 3
0
 public List <Build> ByBuildConfigId(string buildConfigId)
 {
     return(ByBuildLocator(BuildLocator.WithDimensions(BuildTypeLocator.WithId(buildConfigId)
                                                       )));
 }
Exemplo n.º 4
0
 public List <Build> FailedBuildsByBuildConfigId(string buildConfigId, List <String> param = null)
 {
     return(ByBuildLocator(BuildLocator.WithDimensions(BuildTypeLocator.WithId(buildConfigId),
                                                       status: BuildStatus.FAILURE
                                                       ), param));
 }
Exemplo n.º 5
0
        public void it_returns_all_running_builds()
        {
            var builds = _client.BuildsByBuildLocator(BuildLocator.RunningBuilds());

            Assert.IsNotNull(builds, "There are currently no running builds");
        }
Exemplo n.º 6
0
 public Build LastBuildByAgent(string agentName, List <String> param = null)
 {
     return(ByBuildLocator(BuildLocator.WithDimensions(agentName: agentName, maxResults: 1), param).SingleOrDefault());
 }
Exemplo n.º 7
0
 public List <Build> SuccessfulBuildsByBuildConfigId(string buildConfigId, List <String> param = null)
 {
     return(ByBuildLocator(BuildLocator.WithDimensions(BuildTypeLocator.WithId(buildConfigId),
                                                       status: BuildStatus.SUCCESS
                                                       ), param));
 }
Exemplo n.º 8
0
 public List <Build> AllBuildsOfStatusSinceDate(DateTime date, BuildStatus buildStatus)
 {
     return(ByBuildLocator(BuildLocator.WithDimensions(sinceDate: date, status: buildStatus)));
 }
Exemplo n.º 9
0
 public List <Build> ByBranch(string branchName)
 {
     return(ByBuildLocator(BuildLocator.WithDimensions(branch: branchName)));
 }
Exemplo n.º 10
0
 public List <Build> ByUserName(string userName)
 {
     return(ByBuildLocator(BuildLocator.WithDimensions(
                               user: UserLocator.WithUserName(userName)
                               )));
 }
Exemplo n.º 11
0
 public List <Build> ByConfigIdAndTag(string buildConfigId, string[] tags)
 {
     return(ByBuildLocator(BuildLocator.WithDimensions(BuildTypeLocator.WithId(buildConfigId),
                                                       tags: tags
                                                       )));
 }
Exemplo n.º 12
0
 public List <Build> AllSinceDate(DateTime date)
 {
     return(ByBuildLocator(BuildLocator.WithDimensions(sinceDate: date)));
 }