【问题标题】:How to combine two artifacts from two different pipelines in Azure DevOps using yaml?如何使用 yaml 在 Azure DevOps 中组合来自两个不同管道的两个工件?
【发布时间】:2021-07-27 07:12:58
【问题描述】:

我正在从两个不同的管道生成两个不同的工件,我需要合并来自两个管道的两个 html 报告并创建通用 HTML 报告。

Pipeline_1 - test1.html
Pipeline_2 - test2.html

我想创建新管道并从两个管道下载 test1.html 和 test2.html 文件,并使用 Azure DevOps 中的 yaml 从 test1.html 和 test2.html 文件生成通用 html 文件。

Pipeline_3 - (test1.html -> test2.html) = test3.html

请帮帮我。

【问题讨论】:

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


    【解决方案1】:

    您可以使用resources pipelines 来使用这两个管道工件,例如:

    resources:
      pipelines:
      - pipeline: MyAppA
        source: MyCIPipelineA
      - pipeline: MyAppB
        source: MyCIPipelineB
    

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2022-08-24
      • 1970-01-01
      • 2019-05-14
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多