【问题标题】:Azure Pipelines: can a template be consumed from a pipeline resource rather than a repository resource?Azure Pipelines:可以从管道资源而不是存储库资源中使用模板吗?
【发布时间】:2020-12-18 15:37:17
【问题描述】:

有关模板和用法的 Azure Pipeline 文档有一个关于 consuming templates from other repositories 使用“存储库”资源的部分。我想做类似的事情,但使用pipeline resource(已发布的工件)而不是存储库资源。 不幸的是,我无法让它工作。 common.yml@templates 语法似乎特定于存储库,我未能成功下载工件并通过路径引用它们(可能是因为 template is evaluated before any steps are run

是否甚至可以从存储库类型之外的其他资源中使用模板?

【问题讨论】:

    标签: azure-pipelines azure-pipelines-yaml


    【解决方案1】:

    不,据我所知,这是不可能的,您只能按照架构建议从另一个存储库中执行此操作(如果可以,架构会显示)

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2019-12-05
      • 1970-01-01
      • 1970-01-01
      • 2019-05-20
      • 1970-01-01
      • 2017-10-08
      相关资源
      最近更新 更多