/// <summary>
        /// Gathers deployments based on release
        /// </summary>
        /// <param name="client">The Repository this is tacked on to.</param>
        /// <param name="release">The release to get deployments of.</param>
        /// <returns>Enumerable of Deployment Resources.</returns>
        internal static IEnumerable <DeploymentResource> GetReleaseDeployments(this IOctopusClient client, ReleaseResource release)
        {
            List <DeploymentResource> deployments = new List <DeploymentResource>();

            client.Paginate <DeploymentResource>(release.Link(ResourceStrings.DeploymentLink), new { }, page =>
            {
                deployments.AddRange(page.Items);
                return(true);
            });
            return(deployments);
        }
Exemplo n.º 2
0
 public void ResolveDefect(ReleaseResource release)
 {
     Client.Post(release.Link("ResolveDefect"));
 }
Exemplo n.º 3
0
 public void RaiseDefect(ReleaseResource release, string description)
 {
     Client.Post(release.Link("ReportDefect"), new DefectResource(description));
 }
Exemplo n.º 4
0
 public ResourceCollection <DefectResource> GetDefects(ReleaseResource release)
 {
     return(Client.List <DefectResource>(release.Link("Defects")));
 }
Exemplo n.º 5
0
 public Task ResolveDefect(ReleaseResource release)
 {
     return(Client.Post(release.Link("ResolveDefect")));
 }
Exemplo n.º 6
0
 public Task RaiseDefect(ReleaseResource release, string description)
 {
     return(Client.Post(release.Link("ReportDefect"), new DefectResource(description)));
 }