无法运行 Azure 管道“缺少任务。管道引用了名为“缓存”的任务

Ron*_* R. 7 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 ''.)
Run Code Online (Sandbox Code Playgroud)

具体来说,

[更新]

我修改了jobs-templates.yml并注释掉了所有步骤Cache@2,它运行良好

Ron*_* R. 3

最终能够让这个工作。

显然是为了我的 Azure 帐户。我不允许使用Cache@2. 更改所有行

- task: Cache@2
Run Code Online (Sandbox Code Playgroud)

- task: CacheBeta@1
Run Code Online (Sandbox Code Playgroud)

解决了我所有的问题。