Debian Codegraph @

.azure-pipelines/templates/download-install-local-azure-devops-cli-extension.yml

raw symbols SCIP
1 steps:
2 - task: DownloadBuildArtifacts@0
3 displayName : 'Download Extension wheel from Build Artifacts'
4 inputs:
5 buildType: 'current'
6 downloadType: 'single'
7 artifactName: 'azure-devops-cli-extension'
8 downloadPath: '$(System.ArtifactsDirectory)/extension'
9
10 - task: PowerShell@2
11 displayName: 'Install Downloaded Extension'
12 inputs:
13 targetType: 'inline'
14 script: |
15 $extensionUninstall = az extension remove -n azure-devops
16 $extensions = Get-ChildItem -Filter "*.whl" -Recurse | Select-Object FullName
17 Foreach ($extension in $extensions)
18 {
19 Write-Host "installing " $extension.FullName
20 az extension add --source $extension.FullName -y --debug
21 }
22 Write-Host "done"
23 workingDirectory: '$(System.ArtifactsDirectory)/extension'