简体   繁体   English

启动另一个发布管道的 Azure DevOps 任务?

[英]Azure DevOps task to kick off another release pipeline?

In our Azure DevOps deployment we have one "master" release pipeline that generates and runs "child" pipelines.在我们的 Azure DevOps 部署中,我们有一个“主”发布管道,用于生成和运行“子”管道。 The child pipelines are never run directly.子管道永远不会直接运行。

Currently we kick off the child pipelines using a Powershell script in the master pipeline, but I was wondering if there is a built in task that can do this automatically?目前我们在主管道中使用 Powershell 脚本启动子管道,但我想知道是否有可以自动执行此操作的内置任务? I've taken a look at the task list, but nothing jumps out.我查看了任务列表,但没有任何内容跳出。 It's fine if there isn't one, but wanted to ask in case I missed something.如果没有也没关系,但想问问以防万一我错过了什么。

The answer has changed with the latest updates to Azure DevOps.答案随着 Azure DevOps 的最新更新而改变。

You should be able to use multi-stage pipelines or jobs that are part of yaml pipelines.您应该能够使用作为 yaml 管道一部分的多阶段管道或作业。

https://devblogs.microsoft.com/visualstudio/intelligent-productivity-and-collaboration-from-anywhere/ https://devblogs.microsoft.com/visualstudio/intelligent-productivity-and-collaboration-from-anywhere/

Refer below to get an idea on how to do this: https://github.com/venura9/azure-devops-yaml请参阅以下内容以了解如何执行此操作: https : //github.com/venura9/azure-devops-yaml

As long as you are using your `dependsOn' correctly you should be good.只要您正确使用了“dependsOn”,就应该很好。

I don't believe there is one built in by default, so sticking with your Posh script might be the best bet.我不相信默认情况下有一个内置的,所以坚持使用你的 Posh 脚本可能是最好的选择。

I have found/seen this extension before: https://marketplace.visualstudio.com/items?itemName=sergiibomko.vsts-trigger我之前发现/看过这个扩展: https : //marketplace.visualstudio.com/items?itemName=sergiibomko.vsts-trigger

Seems like that may do what you want with a small amount of configuration, but it is a third party made extension without a ton of reviews/reputation.似乎可以通过少量配置完成您想要的操作,但它是第三方制作的扩展程序,没有大量评论/声誉。

IMO, if your powershell script is doing what you need currently without any pain, stick with that :) IMO,如果您的 powershell 脚本正在执行您当前需要的操作而没有任何痛苦,请坚持下去:)

There is not an out-of-the-box task but in the marketplace you can find VSTS Creare Release Task that do exactly what you want.没有开箱即用的任务,但在市场上您可以找到完全符合您要求的VSTS Creare Release Task

在此处输入图片说明

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 如何配置 Azure-DevOps 发布管道任务以在 MacBook 中启动 xcode 上的自动化 UI 测试脚本? - How to configure Azure-DevOps release pipeline task to kick off automated UI test scripts on xcode in MacBook? 在 azure devops 中选择发布管道中的任务 - selection of task in release pipeline in azure devops Azure DevOps - 恢复数据库的管道发布任务 - Azure DevOps - Pipeline Release Task to Restore Database Azure DevOps 发布管道 - Azure Devops Release Pipeline Azure Devops-在发布管道任务中访问工件提要 - Azure Devops - Accessing artifact feed in release pipeline task 如何使用 rest API 在 Azure DevOps 发布管道中添加任务 - How to add task in Azure DevOps release pipeline using rest API 无法在 Azure DevOps 发布管道任务中更改服务连接 - Can't change service connection in Azure DevOps release pipeline task Azure Devops发布管道“部署BizTalk应用程序”任务 - Azure Devops release pipeline “Deploy BizTalk Application” task azure devops 发布管道中的自动化 SQL 部署任务,用于 linux OS - Automated SQL deployment task in azure devops release pipeline for linux OS Azure DevOps SSH 发布管道任务和 Docker Compose STDERR - Azure DevOps SSH release pipeline task and Docker Compose STDERR
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM