This commit is contained in:
Leilei Zhang
2025-02-14 00:09:43 +08:00
parent 7b315f348c
commit 2a06dbb07c

View File

@@ -116,15 +116,11 @@ jobs:
$env:Path = "C:\Program Files\Python39;C:\Program Files\Python39\Scripts;" + $env:Path
python -m pip install --upgrade pip
pip install --pre azure-cli
az pipelines runs artifact download --artifact-name $(TestArtifactsName) --path "$(Pipeline.Workspace)" --run-id $(Build.BuildId)
displayName: 'Download Pipeline Artifact'
env:
AZURE_DEVOPS_EXT_PAT: $(System.AccessToken)
# Update to latest Azure CLI version, min version required for Azure DevOps is 2.10.1
- pwsh: pip install --pre azure-cli
displayName: 'Upgrade Azure CLI'
displayName: 'Install Azure CLI'
- pwsh: az devops configure --defaults organization='$(System.TeamFoundationCollectionUri)' project='$(System.TeamProject)' --use-git-aliases true
displayName: 'Set default Azure DevOps organization and project'
- pwsh: |
az pipelines runs artifact download --artifact-name $(TestArtifactsName) --path "$(Pipeline.Workspace)" --run-id $(Build.BuildId)
displayName: 'Download Pipeline Artifact'