0

I would like to download the test plan artifacts (files) from azure devops repository via command line or power shell script. I used this (Download an application from Azure Devops via command line) as a reference but I cannot use GIT / repository.

Is there any way I can download the test artifacts (files) for each test case/ test suite via command line or powershell?

  • Hi, how the things going? Does the below answer could help you achieve your expected? If yes, you can accept the answer thus other SO users will be able to see whether the solution works. If you still facing some issues, feel free to leave comment here :-) – Frank Wang-MSFT Nov 08 '19 at 06:08

1 Answers1

0

I tested this Rest Api. The download parameter didn't worked as expected.

So there is an another workaround. You can specify the Output file path in the Invoke-RestMethod stage.

$result = Invoke-RestMethod -Uri $uri -OutFile D:\1212\test1.txt -Method Get -ContentType "application/json" -Headers @{Authorization=("Basic {0}" -f $base64AuthInfo)}
Frank Wang-MSFT
  • 1,367
  • 6
  • 6