【问题标题】:How do I make Azure Pipelines aware of the YAML file already in the repo?如何让 Azure Pipelines 知道存储库中已经存在的 YAML 文件?
【发布时间】:2021-07-01 20:25:33
【问题描述】:

最近我询问了Moving a Visual Studio solution and projects, then establishing it with a different remote。使用答案,我将我的项目复制到一个新的本地存储库中,并在 Azure DevOps Services 中建立了远程。但是,现在我试图让 Azure 构建管道工作,但 Azure Pipeline 无法识别 repo 中的 azure-pipelines.yml 文件。我尝试导入管道,但该操作需要一个构建管道 JSON 文件,而 YAML 文件不是。

如何让 Azure Pipelines 将 YAML 文件识别为构建管道文件?

【问题讨论】:

    标签: azure azure-devops azure-pipelines azure-pipelines-yaml


    【解决方案1】:

    您需要创建一个新管道并选择:Existing Azure PipelineS YAML file,然后选择您的 yaml 文件。

    【讨论】:

    • 这仍然有效吗?在“您的代码在哪里”屏幕上选择“Azure Repos Git”时,我没有看到此选项
    • 是的。我检查了,我有它可用。
    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2018-10-22
    • 1970-01-01
    • 1970-01-01
    • 2016-09-23
    • 1970-01-01
    • 2020-08-26
    相关资源
    最近更新 更多