在我的Azure Pipelines YAML文件中,我正在使用Bash任务运行一个Python脚本,该脚本在Azure Artifacts(通用包)上缓存Cocoapods库。我假设Azure DevOps虚拟机上的Azure命令行工具将安装最新的Azure扩展。我错了。
我的Python脚本调用诸如az artifacts universal download
和az artifacts universal publish
之类的命令。这在我的Mac上效果很好。在microsoft的VM上没有那么多。
任何建议将不胜感激。
##[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'.