Skip to content

Commit

Permalink
Downloads all *known* versions
Browse files Browse the repository at this point in the history
  • Loading branch information
jessehouwing committed Jan 22, 2023
1 parent 819f838 commit ce7e996
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion download.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ $pat = $env:AZURE_DEVOPS_PAT
$url = "https://dev.azure.com/$org"
$header = @{authorization = "Basic $([Convert]::ToBase64String([System.Text.Encoding]::UTF8.GetBytes(".:$pat")))"}

$tasks = Invoke-RestMethod -Uri "$url/_apis/distributedtask/tasks" -Method Get -ContentType "application/json" -Headers $header | ConvertFrom-Json -AsHashtable
$tasks = Invoke-RestMethod -Uri "$url/_apis/distributedtask/tasks?allversions=true" -Method Get -ContentType "application/json" -Headers $header | ConvertFrom-Json -AsHashtable

$taskMetadatas = $tasks.value

Expand Down

0 comments on commit ce7e996

Please sign in to comment.