【发布时间】:2018-10-18 13:01:11
【问题描述】:
如果存储帐户中的 blob 更新,是否可以根据条件触发 VSTS/TFS 构建?
我尝试创建一个函数应用,但几乎没有结果,我无法触发 VSTS/TFS 构建。
【问题讨论】:
标签: azure tfs azure-devops azure-blob-storage azure-logic-apps
如果存储帐户中的 blob 更新,是否可以根据条件触发 VSTS/TFS 构建?
我尝试创建一个函数应用,但几乎没有结果,我无法触发 VSTS/TFS 构建。
【问题讨论】:
标签: azure tfs azure-devops azure-blob-storage azure-logic-apps
最简单的解决方案(据我所知)是使用logic app:
注意
您的 VSTS 帐户应启用“通过 OAuth 访问第三方应用程序”。 (转到管理 > 控制面板 > 设置页面)
【讨论】:
Third-party application access via OAuth的东西
根据the official docs,可以:
...在检测到新的或更新的 blob 时启动一个函数。 Blob 内容作为函数的输入提供。
那么,Azure 函数唯一应该对queue a build in VSTS with the help of REST API 执行的操作。您可能还想查看Getting Started page of VSTS REST API docs - 它包含快速上手的基本示例。
【讨论】: