簡體   English   中英

Azure:無法觸發另一個發布管道

[英]Azure: Not able to trigger a release pipeline from another

我正在嘗試使用此文件夾結構(經典編輯器)在azure-devops中創建管道層次結構:

-Starter
-- Starter-Pipeline 1
-- Starter-Pipeline 2
-Master
-- Master-Pipeline 1
-- Master-Pipeline 2

入門管道應根據條件觸發主管道。 為此,我使用了觸發器構建任務

Name of the Build Definitions that shall be triggered: Master-Pipeline 1

但是,我收到此錯誤:
##[error]Did not find any build definition with this name: Master-Pipeline 1

調試日志沒有幫助。 這里有什么問題?

Azure:無法觸發另一個發布管道

當您使用Trigger Build Task 觸發另一個發布管道時,我可以重現此問題。

那是因為此任務僅支持Build管道,而不支持Release管道。

請檢查此任務的說明:

可以用於觸發新構建的構建任務,以便可以進行構建鏈接。 支持條件觸發器。

通過此構建任務,可以在TFS中鏈接構建。 它利用內置的TFS API將任何構建定義的新構建放入隊列(在同一Team Project內,甚至跨項目),並且在觸發構建時支持不同的條件。

作為測試,我添加了一個名為Master-Pipeline 1的新構建管道,然后可以在發布管道Starter-Pipeline 1觸發該構建管道。

希望這可以幫助。

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM