mph*_*mph 1 artifacts package azure universal azure-devops
在我的 Azure Pipelines YAML 文件中,我使用 Bash 任务运行 Python 脚本,该脚本在 Azure Artifacts(通用包)上缓存 CocoaPods 库。我假设 Azure DevOps 虚拟机上的 Azure 命令行工具会安装最新的 Azure 扩展。我错了。
我的 Python 脚本调用诸如az artifacts universal download和 之类的命令az artifacts universal publish。这在我的 Mac 上效果很好。在微软的虚拟机上没有那么多。
任何意见,将不胜感激。
##[section]Starting: Bash
==============================================================================
Task : Bash
Description : Run a Bash script on macOS, Linux, or Windows
Version : 3.159.3
Author : Microsoft Corporation
Help : https://docs.microsoft.com/azure/devops/pipelines/tasks/utility/bash
==============================================================================
Generating script.
Script contents:
./cache_pods.py Debug
========================== Starting Command Output ===========================
[command]/bin/bash --noprofile --norc /Users/runner/runners/2.160.1/work/_temp/d0fd889d-a201-42ac-aad6-45ee3eca0532.sh
ERROR: az: 'artifacts' is not in the 'az' command group. See 'az --help'.
Run Code Online (Sandbox Code Playgroud)
小智 6
错误:az:'artifacts' 不在 'az' 命令组中。参见“az --help”。
需要先安装 Azure DevOps Extension,然后使用 az artifacts 命令。有关详细信息,请参阅Azure Pipeline YAML 中的 Azure DevOps CLI。
steps:
- script: az extension add -n azure-devops
displayName: 'Install Azure DevOps Extension'
Run Code Online (Sandbox Code Playgroud)
请将此添加到您的 yaml 中,然后重试。希望这会奏效。
| 归档时间: |
|
| 查看次数: |
1262 次 |
| 最近记录: |