azure - 无法运行Azure管道 "A task is missing. The pipeline references a task called '缓存'

标签 azure azure-devops azure-pipelines

我正在使用 azure_pipeline.yaml 配置设置 Github 项目的分支。 这似乎对社区中的其他人都适用,但是当我设置管道时,它给了我以下异常:

A task is missing. The pipeline references a task called 'Cache'. This usually indicates the task isn't installed, and you may be able to install it from the Marketplace: https://marketplace.visualstudio.com. (Task version 2, job 'compile_ci_build', step ''.)
A task is missing. The pipeline references a task called 'Cache'. This usually indicates the task isn't installed, and you may be able to install it from the Marketplace: https://marketplace.visualstudio.com. (Task version 2, job 'test_ci_build', step ''.)
A task is missing. The pipeline references a task called 'Cache'. This usually indicates the task isn't installed, and you may be able to install it from the Marketplace: https://marketplace.visualstudio.com. (Task version 2, job 'e2e_ci_build', step ''.)

具体来说,

[更新]

我修改了jobs-templates.yml并用 Cache@2 注释掉所有步骤,它 runs fine

最佳答案

最终能够使其正常工作。

显然是针对我的 Azure 帐户。我不允许使用Cache@2。 用

更改所有行
- task: Cache@2

- task: CacheBeta@1

解决了我所有的问题。

关于azure - 无法运行Azure管道 "A task is missing. The pipeline references a task called '缓存',我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/60661560/

相关文章:

azure - 从 Azure 管道任务访问 Microsoft.Azure.WebSites 资源提供程序(Microsoft Azure 应用服务)的服务主体

MSBuild参数生成文件

c# - 使用 Azure SDK 将多个地址前缀添加到网络子网

web-services - Azure 网站如何访问 Azure 托管虚拟机?

azure - 发布后如何将 Azure 数据工厂参数获取到 ARM 模板参数文件 (ARMTemplateParametersForFactory.json)

visual-studio-2012 - 将 TF.exe 与 Team Foundation Service 一起使用?

azure - 如何在 Azure DevOps Pipelines 上批量更改审批者?

azure - "Authorized IP ranges should be defined on Kubernetes Services"阻止部署管道

winforms - 在模块中找到 Azure Powershell 命令,但无法加载模块

c# - Azure Web 作业找不到连接字符串