我正在使用 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 ''.)
具体来说,
这是我的 Azure pipeline link
- 我正在根据 this instruction 创建 Flink CI 构建管道.
- 已经有
azure-pipeline.yml
在 repo 协议(protocol)中 - 它使用模板来运行
tools/azure-pipelines/jobs-template.yml
中参数化的作业
[更新]
我修改了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/