[英]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.