MethodsAndPractices / vsteam

PowerShell module for accessing Azure DevOps Services and Azure DevOps Server (formerly VSTS or TFS)
https://methodsandpractices.github.io/vsteam-docs/
MIT License
445 stars 155 forks source link

Suggestion: Download-VSTeamBuildArtifact #288

Open richardgavel opened 4 years ago

richardgavel commented 4 years ago

I know the results of Get-VSTeamBuildArtifact returns an object from which a URL is contained that one can use to download a build artifact, but it would be nice to encapsulate that in a single cmdlet.

Download-VSTeamBuildArtifact -ProjectName {name} -Id {id} -ArtifactName {name} -Path {optional path within the artifact if you only want a subset of the artifact} -File {path to write artifact to}

DarqueWarrior commented 3 years ago

-Path {optional path within the artifact if you only want a subset of the artifact} The Path part seems like it could be tricky. The rest seems pretty straightforward