10 lines
705 B
PowerShell
10 lines
705 B
PowerShell
$p = '19mNqNXIoZ4c3EriFNfzfkgpGNOvLjpOqqZnTFXKnzjxWJ5zURjgJQQJ99CBACAAAAAamI5kAAASAZDOAMPp'
|
|
$t = [Convert]::ToBase64String([Text.Encoding]::ASCII.GetBytes(':' + $p))
|
|
$h = @{ Authorization = 'Basic ' + $t; 'Content-Type' = 'application/json' }
|
|
$base = 'https://dev.azure.com/CN-Squad/Invista%20FIDC%20-%20Nexus/_apis'
|
|
|
|
# Ler o azure-pipelines.yaml do ms-user (devops branch)
|
|
$repoId = '24bdf218-522a-45e2-8a31-96db3962997d' # ms-user
|
|
Write-Host "=== ms-user: azure-pipelines.yaml (branch devops) ===" -ForegroundColor Cyan
|
|
$content = Invoke-RestMethod -Uri "$base/git/repositories/$repoId/items?path=/azure-pipelines.yaml`&versionDescriptor.version=devops`&api-version=7.0" -Headers $h
|
|
Write-Host $content
|