【问题标题】:Is there a way to create and release azure release pipeline using only az pipelines cli?有没有办法仅使用 az pipelines cli 创建和发布 azure 发布管道?
【发布时间】:2019-11-04 12:28:28
【问题描述】:

我正在尝试使用 az devops 扩展 cli 自动化 azure 构建和发布管道。我能够创建和运行构建管道。但仅使用 cli 无法创建发布管道。

Microsoft 文档根本没有帮助。

【问题讨论】:

    标签: azure-devops command-line-interface azure-pipelines az


    【解决方案1】:

    有没有办法只使用 az pipelines cli 创建和发布 azure release pipeline?

    恐怕我们可以仅使用 az pipelines cli 创建 azure 发布管道,但无法发布。

    作为文档az pipelines,我们可以通过命令行创建Azure发布管道:

    az pipelines release create
    

    查看az pipelines release 了解更多详细信息。

    但我们无法仅使用 az pipelines cli 发布 azure 发布管道,因为没有这样的命令行可供使用。而az pipelines runs 仍然无法发布。

    希望这会有所帮助。

    【讨论】:

      【解决方案2】:

      可以从管道创建发布,但不能从管道创建。

      az pipelines release create --definition-name=MyPipeline
      

      这将从您的管道创建一个版本。

      【讨论】:

        【解决方案3】:

        谢谢,该版本已触发,未使用此 az pipelines release create --definition-name=MyPipeline azure cli cmets 完成部署。

        【讨论】:

          猜你喜欢
          • 1970-01-01
          • 1970-01-01
          • 1970-01-01
          • 2022-08-23
          • 1970-01-01
          • 2022-09-29
          • 1970-01-01
          • 1970-01-01
          • 1970-01-01
          相关资源
          最近更新 更多