Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add DownloadArtifacts() method to RemoteTc that accepts lambda #103

Open
borismod opened this issue Apr 21, 2017 · 0 comments
Open

Add DownloadArtifacts() method to RemoteTc that accepts lambda #103

borismod opened this issue Apr 21, 2017 · 0 comments

Comments

@borismod
Copy link
Contributor

Feature Request

As a user I would like to be able to download artifacts using fluent API with build locators

Test to reproduce

_Please provide necessary steps for reproduction of this issue_.
[Test]
public void DownloadArtifacts_ByBuildConfiguration_Status()
{
    IList<string> downloadedFiles = new RemoteTc(c => c.ToHost("HOST").AsGuest())
        .DownloadArtifacts(build => build
                .BuildConfiguration(with => with.Id("FluentTc"))
                .Status(BuildStatus.Success),  
            @"C:\DownloadedArtifacts");
}

[Test]
public void DownloadArtifacts_ByBuildId()
{
    IList<string> downloadedFiles = new RemoteTc(c => c.ToHost("HOST").AsGuest())
        .DownloadArtifacts(build => build.Id(12345), @"C:\DownloadedArtifacts");
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant